summaryrefslogtreecommitdiff
path: root/src/rdb.c
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2022-07-07 11:31:59 +0800
committerGitHub <noreply@github.com>2022-07-06 20:31:59 -0700
commit8203461120bf244e5c0576222c6aa5d986587bca (patch)
tree60690bb3db078745af9412f43200c854b31cc9c5 /src/rdb.c
parent0a2e51f9aeb2e9b4178afa26932eb6496fd993f7 (diff)
downloadredis-8203461120bf244e5c0576222c6aa5d986587bca.tar.gz
Fix some outdated comments and some typo (#10946)
* Fix some outdated comments and some typo
Diffstat (limited to 'src/rdb.c')
-rw-r--r--src/rdb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rdb.c b/src/rdb.c
index ddbdb8b1b..b53fbdb21 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -1160,7 +1160,6 @@ ssize_t rdbSaveAuxFieldStrInt(rio *rdb, char *key, long long val) {
/* Save a few default AUX fields with information about the RDB generated. */
int rdbSaveInfoAuxFields(rio *rdb, int rdbflags, rdbSaveInfo *rsi) {
- UNUSED(rdbflags);
int redis_bits = (sizeof(void*) == 8) ? 64 : 32;
int aof_base = (rdbflags & RDBFLAGS_AOF_PREAMBLE) != 0;
@@ -3247,7 +3246,7 @@ eoferr:
* to do the actual loading. Moreover the ETA displayed in the INFO
* output is initialized and finalized.
*
- * If you pass an 'rsi' structure initialized with RDB_SAVE_OPTION_INIT, the
+ * If you pass an 'rsi' structure initialized with RDB_SAVE_INFO_INIT, the
* loading code will fill the information fields in the structure. */
int rdbLoad(char *filename, rdbSaveInfo *rsi, int rdbflags) {
FILE *fp;