mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix: Do not attempt to defrag StringSet
as a StringMap
(#4283)
That'd be a total waste of time and energy, not to mention you'll crash. Fixes #4167
This commit is contained in:
parent
44e27efc00
commit
0562796cac
2 changed files with 11 additions and 2 deletions
|
@ -305,9 +305,9 @@ pair<void*, bool> DefragSet(unsigned encoding, void* ptr, float ratio) {
|
|||
return DefragIntSet((intset*)ptr, ratio);
|
||||
}
|
||||
|
||||
// StringMap supports re-allocation of it's internal nodes
|
||||
case kEncodingStrMap2: {
|
||||
return DefragStrMap2((StringMap*)ptr, ratio);
|
||||
// Still not implemented
|
||||
return {ptr, false};
|
||||
}
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue