mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
Update src/core/compact_object.cc
Co-authored-by: Kostas Kyrimis <kostas@dragonflydb.io> Signed-off-by: Roman Gershman <romange@gmail.com>
This commit is contained in:
parent
0d6078ef65
commit
bfad52e54b
1 changed files with 1 additions and 2 deletions
|
@ -1012,8 +1012,7 @@ string_view CompactObj::GetSlice(string* scratch) const {
|
|||
CHECK(!IsExternal());
|
||||
|
||||
if (mask_bits_.encoding) {
|
||||
scratch->resize(Size());
|
||||
GetString(scratch->data());
|
||||
GetString(&scratch);
|
||||
return *scratch;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue