summaryrefslogtreecommitdiff
path: root/src/rdb.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-04-09 12:02:27 +0200
committerantirez <antirez@gmail.com>2020-04-09 12:10:10 +0200
commit451872527cec0b369211284b48e48867f5d168a9 (patch)
treee8d6d699f1c1042ca135043f3c13b716ed0f5596 /src/rdb.h
parent3d5b2d41b52906269778c42fec40d3c85535b9bf (diff)
downloadredis-451872527cec0b369211284b48e48867f5d168a9.tar.gz
More powerful DEBUG RELOAD.
Related to #3243.
Diffstat (limited to 'src/rdb.h')
-rw-r--r--src/rdb.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rdb.h b/src/rdb.h
index 9dfcae7a5..aae682dbc 100644
--- a/src/rdb.h
+++ b/src/rdb.h
@@ -122,10 +122,10 @@
#define RDB_LOAD_SDS (1<<2)
/* flags on the purpose of rdb save or load */
-#define RDBFLAGS_NONE 0
-#define RDBFLAGS_AOF_PREAMBLE (1<<0)
-#define RDBFLAGS_REPLICATION (1<<1)
-#define RDBFLAGS_ALLOW_DUP (1<<2)
+#define RDBFLAGS_NONE 0 /* No special RDB loading. */
+#define RDBFLAGS_AOF_PREAMBLE (1<<0) /* Load/save the RDB as AOF preamble. */
+#define RDBFLAGS_REPLICATION (1<<1) /* Load/save for SYNC. */
+#define RDBFLAGS_ALLOW_DUP (1<<2) /* Allow duplicated keys when loading.*/
int rdbSaveType(rio *rdb, unsigned char type);
int rdbLoadType(rio *rdb);