We can't swap databases if there are async rehashes
Former-commit-id: 4b8967f94667309c5585032db7403bf4c8885145
This commit is contained in:
parent
f4eae316b2
commit
96ab9c58ae
@ -195,7 +195,7 @@ int dictMerge(dict *dst, dict *src)
|
|||||||
}
|
}
|
||||||
|
|
||||||
size_t expectedSize = dictSize(src) + dictSize(dst);
|
size_t expectedSize = dictSize(src) + dictSize(dst);
|
||||||
if (dictSize(src) > dictSize(dst))
|
if (dictSize(src) > dictSize(dst) && src->asyncdata == nullptr && dst->asyncdata == nullptr)
|
||||||
{
|
{
|
||||||
std::swap(*dst, *src);
|
std::swap(*dst, *src);
|
||||||
std::swap(dst->iterators, src->iterators);
|
std::swap(dst->iterators, src->iterators);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user