mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
fix(rdb): add error msg when rejecting the rdb version.
This commit is contained in:
parent
9f935a33c0
commit
4054297bbd
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue