Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Registro
Iniciar sesión
SisMaker
/
lager
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Projects
0
Lanzamientos
53
Wiki
Actividad
Explorar el Código
Remove TODO and add a second file:close due to delayed write
pull/509/head
Luke Bakken
hace 5 años
padre
0979fd7079
commit
4ed9b558ac
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG:
D99DE30E43EAE440
Se han
modificado 2 ficheros
con
1 adiciones
y
1 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+0
-1
src/lager_file_backend.erl
+1
-0
src/lager_rotator_default.erl
+ 0
- 1
src/lager_file_backend.erl
Ver fichero
@ -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 fichero
@ -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
;
Escribir
Vista previa
Cargando…
Cancelar
Guardar