mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix: Correctly grow dense_set in the Reserve call (#2087)
Fixes #2066 Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
502efd80b2
commit
47d92fb010
9 changed files with 76 additions and 23 deletions
|
@ -616,7 +616,7 @@ void RdbLoaderBase::OpaqueObjLoader::CreateHMap(const LoadTrace* ltrace) {
|
|||
return;
|
||||
|
||||
if (!string_map->AddOrSkip(key, val)) {
|
||||
LOG(ERROR) << "Duplicate hash fields detected";
|
||||
LOG(ERROR) << "Duplicate hash fields detected for field " << key;
|
||||
ec_ = RdbError(errc::rdb_file_corrupted);
|
||||
return;
|
||||
}
|
||||
|
@ -2272,6 +2272,7 @@ void RdbLoader::LoadItemsBuffer(DbIndex db_ind, const ItemsBuf& ib) {
|
|||
for (const auto* item : ib) {
|
||||
PrimeValue pv;
|
||||
if (ec_ = FromOpaque(item->val, &pv); ec_) {
|
||||
LOG(ERROR) << "Could not load value for key '" << item->key << "' in DB " << db_ind;
|
||||
stop_early_ = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue