Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Cadastrar
Acessar
SisMaker
/
lager
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Projects
0
Versões
53
Wiki
Atividade
Ver código fonte
Remove TODO and add a second file:close due to delayed write
pull/509/head
Luke Bakken
5 anos atrás
pai
0979fd7079
commit
4ed9b558ac
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados
ID da chave GPG:
D99DE30E43EAE440
2 arquivos alterados
com
1 adições
e
1 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+0
-1
src/lager_file_backend.erl
+1
-0
src/lager_rotator_default.erl
+ 0
- 1
src/lager_file_backend.erl
Ver arquivo
@ -472,7 +472,6 @@ close_file(#state{fd=undefined} = State) ->
State
;
close_file
(
#state
{
fd
=
FD
}
=
State
)
-
>
%
%
Flush
and
close
any
file
handles
.
%
%
TODO
LRB
don
'
t
match
,
but
report
errors
?
?
?
_
=
file
:
datasync
(
FD
)
,
%
%
delayed
write
can
cause
file
:
close
not
to
do
a
close
_
=
file
:
close
(
FD
)
,
+ 1
- 0
src/lager_rotator_default.erl
Ver arquivo
@ -67,6 +67,7 @@ rotate_logfile(File, 0) ->
%
%
open
the
file
in
write
-
only
mode
to
truncate
/
create
it
case
file
:
open
(
File
,
[
write
]
)
of
{
ok
,
FD
}
-
>
_
=
file
:
close
(
FD
)
,
_
=
file
:
close
(
FD
)
,
{
ok
,
_
Ctime
}
=
maybe_update_ctime
(
File
)
,
ok
;
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar