Fix obtain the AOF file length error when load AOF
this was a regression from (not released yet)
@@ -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 {
