이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
도움말
가입하기
로그인
SisMaker
/
lager
보기
1
좋아요
0
포크
0
코드
이슈
0
풀 리퀘스트
0
Projects
0
릴리즈
53
위키
활동
소스 검색
Remove TODO and add a second file:close due to delayed write
pull/509/head
Luke Bakken
5 년 전
부모
0979fd7079
커밋
4ed9b558ac
No known key found for this signature in database
GPG 키 ID:
D99DE30E43EAE440
2개의 변경된 파일
과
1개의 추가작업
그리고
1개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
src/lager_file_backend.erl
+1
-0
src/lager_rotator_default.erl
+ 0
- 1
src/lager_file_backend.erl
파일 보기
@ -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
파일 보기
@ -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
;
쓰기
미리보기
불러오는 중...
취소
저장