summaryrefslogtreecommitdiff
path: root/src/redis-check-rdb.c
diff options
context:
space:
mode:
authorOran Agra <oran@redislabs.com>2019-10-29 17:59:09 +0200
committerOran Agra <oran@redislabs.com>2019-10-29 17:59:09 +0200
commit51c3ff8d75d9c784297ad587a31a37acd89499d8 (patch)
treec3d0e3d00aeb9e60d651c8e8cf30ca0bc17f9466 /src/redis-check-rdb.c
parent764b420f5fddfe177638828a43c921eb949b140c (diff)
downloadredis-51c3ff8d75d9c784297ad587a31a37acd89499d8.tar.gz
Modules hooks: complete missing hooks for the initial set of hooks
* replication hooks: role change, master link status, replica online/offline * persistence hooks: saving, loading, loading progress * misc hooks: cron loop, shutdown, module loaded/unloaded * change the way hooks test work, and add tests for all of the above startLoading() now gets flag indicating what is loaded. stopLoading() now gets an indication of success or failure. adding startSaving() and stopSaving() with similar args and role.
Diffstat (limited to 'src/redis-check-rdb.c')
-rw-r--r--src/redis-check-rdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/redis-check-rdb.c b/src/redis-check-rdb.c
index 5e7415046..1210d49b4 100644
--- a/src/redis-check-rdb.c
+++ b/src/redis-check-rdb.c
@@ -202,7 +202,7 @@ int redis_check_rdb(char *rdbfilename, FILE *fp) {
}
expiretime = -1;
- startLoadingFile(fp, rdbfilename);
+ startLoadingFile(fp, rdbfilename, RDBFLAGS_NONE);
while(1) {
robj *key, *val;
@@ -316,7 +316,7 @@ int redis_check_rdb(char *rdbfilename, FILE *fp) {
}
if (closefile) fclose(fp);
- stopLoading();
+ stopLoading(1);
return 0;
eoferr: /* unexpected end of file is handled here with a fatal exit */
@@ -327,7 +327,7 @@ eoferr: /* unexpected end of file is handled here with a fatal exit */
}
err:
if (closefile) fclose(fp);
- stopLoading();
+ stopLoading(0);
return 1;
}