Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/t_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,7 @@ void hgetdelCommand(client *c) {
if (checkType(c, o, OBJ_HASH)) return;

bool hash_volatile_items = hashTypeHasVolatileFields(o);
if (o && o->encoding == OBJ_ENCODING_HASHTABLE) hashtablePauseAutoShrink(objectGetVal(o));

/* Reply with array of values and delete at the same time */
addReplyArrayLen(c, num_fields);
Expand All @@ -1191,6 +1192,7 @@ void hgetdelCommand(client *c) {
}
}
}
if (!keyremoved && o && o->encoding == OBJ_ENCODING_HASHTABLE) hashtableResumeAutoShrink(objectGetVal(o));

if (deleted) {
if (!keyremoved && hash_volatile_items != hashTypeHasVolatileFields(o)) {
Expand Down
Loading