summaryrefslogtreecommitdiff
path: root/src/aof.c
diff options
context:
space:
mode:
authorchenyang8094 <chenyang8094@users.noreply.github.com>2022-01-17 15:02:09 +0800
committerGitHub <noreply@github.com>2022-01-17 09:02:09 +0200
commitd7aeb2ce5f7c1ae8640fd24538393672600b7607 (patch)
treea117e447a7a8d4ea6394fc5c889cbe9ba7a1212c /src/aof.c
parent50fa627b90cfcd322ed92c9ab3dc13ea87bc6b34 (diff)
downloadredis-d7aeb2ce5f7c1ae8640fd24538393672600b7607.tar.gz
Use am instead of using server.aof_manifest directly to call getBaseAndIncrAppendOnlyFilesSize (#10123)
Diffstat (limited to 'src/aof.c')
-rw-r--r--src/aof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aof.c b/src/aof.c
index 20b7e57b8..9257e9eba 100644
--- a/src/aof.c
+++ b/src/aof.c
@@ -1574,7 +1574,7 @@ int loadAppendOnlyFiles(aofManifest *am) {
/* Here we calculate the total size of all BASE and INCR files in
* advance, it will be set to `server.loading_total_bytes`. */
- total_size = getBaseAndIncrAppendOnlyFilesSize(server.aof_manifest);
+ total_size = getBaseAndIncrAppendOnlyFilesSize(am);
startLoading(total_size, RDBFLAGS_AOF_PREAMBLE, 0);
/* Load BASE AOF if needed. */