mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Fix obtain the AOF file length error when load AOF (#9510)
this was a regression from #9012 (not released yet)
This commit is contained in:
parent
3ff56a6dde
commit
7c1f9ef503
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user