fix(rdb): add error msg when rejecting the rdb version.

This commit is contained in:
Roman Gershman 2022-08-15 09:12:14 +03:00
parent 9f935a33c0
commit 4054297bbd

View file

@ -845,6 +845,7 @@ error_code RdbLoader::Load(io::Source* src) {
int rdbver = atoi(buf);
if (rdbver < 5 || rdbver > RDB_VERSION) { // We accept starting from 5.
LOG(ERROR) << "RDB Version " << rdbver << " is not supported";
return RdbError(errc::bad_version);
}