Skip to content

Commit

Permalink
In Redis RDB check: minor output message changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jul 1, 2016
1 parent e9f31ba commit 2ab7097
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/redis-check-rdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ int redis_check_rdb(char *rdbfilename) {
if ((auxkey = rdbLoadStringObject(&rdb)) == NULL) goto eoferr;
if ((auxval = rdbLoadStringObject(&rdb)) == NULL) goto eoferr;

rdbCheckInfo("%s = '%s'", (char*)auxkey->ptr, (char*)auxval->ptr);
rdbCheckInfo("AUX FIELD %s = '%s'",
(char*)auxkey->ptr, (char*)auxval->ptr);
decrRefCount(auxkey);
decrRefCount(auxval);
continue; /* Read type again. */
Expand Down Expand Up @@ -265,6 +266,8 @@ int redis_check_rdb(char *rdbfilename) {
rdbCheckInfo("RDB file was saved with checksum disabled: no check performed.");
} else if (cksum != expected) {
rdbCheckError("RDB CRC error");
} else {
rdbCheckInfo("Checksum OK");
}
}

Expand Down

0 comments on commit 2ab7097

Please sign in to comment.