mirror of
https://github.com/redis/redis.git
synced 2026-05-19 08:42:50 -04:00
Update t_hash.c
This commit is contained in:
parent
cee7322fd7
commit
f33bf2aea1
1 changed files with 4 additions and 2 deletions
|
|
@ -2917,11 +2917,13 @@ void hgetexCommand(client *c) {
|
|||
* or the new expiration time is in the past. */
|
||||
newlen = hashTypeLength(o, 0);
|
||||
if (newlen == 0) {
|
||||
updateKeysizesHist(c->db, OBJ_HASH, oldlen, 0);
|
||||
dbDeleteSkipKeysizesUpdate(c->db, c->argv[1]);
|
||||
notifyKeyspaceEvent(NOTIFY_GENERIC, "del", c->argv[1], c->db->id);
|
||||
newlen = -1;
|
||||
updateKeysizesHist(c->db, OBJ_HASH, 0, -1);
|
||||
} else {
|
||||
updateKeysizesHist(c->db, OBJ_HASH, oldlen, newlen);
|
||||
}
|
||||
updateKeysizesHist(c->db, OBJ_HASH, oldlen, newlen);
|
||||
}
|
||||
|
||||
void hdelCommand(client *c) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue