Commit 2ab70971 authored by antirez's avatar antirez
Browse files

In Redis RDB check: minor output message changes.

parent e9f31ba9
......@@ -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. */
......@@ -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");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment