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:
Roman Gershman 2025-05-07 21:01:54 +03:00 committed by GitHub
parent 0d6078ef65
commit bfad52e54b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}