Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7c1f9ef5
Unverified
Commit
7c1f9ef5
authored
Sep 26, 2021
by
chenyang8094
Committed by
GitHub
Sep 26, 2021
Browse files
Fix obtain the AOF file length error when load AOF (#9510)
this was a regression from #9012 (not released yet)
parent
3ff56a6d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/aof.c
View file @
7c1f9ef5
...
@@ -1773,7 +1773,7 @@ void aofUpdateCurrentSize(void) {
...
@@ -1773,7 +1773,7 @@ void aofUpdateCurrentSize(void) {
mstime_t
latency
;
mstime_t
latency
;
latencyStartMonitor
(
latency
);
latencyStartMonitor
(
latency
);
if
(
redis_
f
stat
(
server
.
aof_f
d
,
&
sb
)
==
-
1
)
{
if
(
redis_stat
(
server
.
aof_f
ilename
,
&
sb
)
==
-
1
)
{
serverLog
(
LL_WARNING
,
"Unable to obtain the AOF file length. stat: %s"
,
serverLog
(
LL_WARNING
,
"Unable to obtain the AOF file length. stat: %s"
,
strerror
(
errno
));
strerror
(
errno
));
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment