summaryrefslogtreecommitdiff
path: root/src/bio.c
diff options
context:
space:
mode:
authorWang Yuan <wangyuancode@163.com>2020-12-02 19:56:11 +0800
committerGitHub <noreply@github.com>2020-12-02 13:56:11 +0200
commitb55a827ea2e19bd6cd48f216e8e6caa34299f9b9 (patch)
treed5698bb9421fe70cf76f406989a816ad979a3935 /src/bio.c
parent84e0489562a0f61b95755dc863bfca79c23b6ef0 (diff)
downloadredis-b55a827ea2e19bd6cd48f216e8e6caa34299f9b9.tar.gz
Backup keys to slots map and restore when fail to sync if diskless-load type is swapdb in cluster mode (#8108)
When replica diskless-load type is swapdb in cluster mode, we didn't backup keys to slots map, so we will lose keys to slots map if fail to sync. Now we backup keys to slots map at first, and restore it properly when fail. This commit includes a refactory/cleanup of the backups mechanism (moving it to db.c and re-structuring it a bit). Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'src/bio.c')
-rw-r--r--src/bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bio.c b/src/bio.c
index a512def0a..a11bcb18b 100644
--- a/src/bio.c
+++ b/src/bio.c
@@ -203,7 +203,7 @@ void *bioProcessBackgroundJobs(void *arg) {
/* What we free changes depending on what arguments are set:
* arg1 -> free the object at pointer.
* arg2 & arg3 -> free two dictionaries (a Redis DB).
- * only arg3 -> free the skiplist. */
+ * only arg3 -> free the radix tree. */
if (job->arg1)
lazyfreeFreeObjectFromBioThread(job->arg1);
else if (job->arg2 && job->arg3)