Unverified Commit 7c1f9ef5 authored by chenyang8094's avatar chenyang8094 Committed by GitHub
Browse files

Fix obtain the AOF file length error when load AOF (#9510)

this was a regression from #9012 (not released yet)
parent 3ff56a6d
......@@ -1773,7 +1773,7 @@ void aofUpdateCurrentSize(void) {
mstime_t latency;
latencyStartMonitor(latency);
if (redis_fstat(server.aof_fd,&sb) == -1) {
if (redis_stat(server.aof_filename,&sb) == -1) {
serverLog(LL_WARNING,"Unable to obtain the AOF file length. stat: %s",
strerror(errno));
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment