Skip to content

Commit

Permalink
Merge h*expire* command's notification as hexpire
Browse files Browse the repository at this point in the history
  • Loading branch information
sundb committed May 8, 2024
1 parent 6e75c3f commit 14dd84f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/t_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ void hashTypeSetExDone(HashTypeSetEx *ex) {
if (ex->c) {
server.dirty += ex->fieldDeleted + ex->fieldUpdated;
signalModifiedKey(ex->c, ex->db, ex->key);
notifyKeyspaceEvent(NOTIFY_HASH, ex->cmd, ex->key, ex->db->id);
notifyKeyspaceEvent(NOTIFY_HASH, "hexpire", ex->key, ex->db->id);
}
if (ex->fieldDeleted && hashTypeLength(ex->hashObj, 0) == 0) {
dbDelete(ex->db,ex->key);
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/pubsub.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ start_server {tags {"pubsub network"}} {
assert_equal "pmessage * __keyspace@${db}__:myhash hset" [$rd1 read]
assert_equal "pmessage * __keyspace@${db}__:myhash hincrby" [$rd1 read]
assert_equal "pmessage * __keyspace@${db}__:myhash hexpire" [$rd1 read]
assert_equal "pmessage * __keyspace@${db}__:myhash hexpireat" [$rd1 read]
assert_equal "pmessage * __keyspace@${db}__:myhash hpexpire" [$rd1 read]
assert_equal "pmessage * __keyspace@${db}__:myhash hexpire" [$rd1 read]
assert_equal "pmessage * __keyspace@${db}__:myhash hexpire" [$rd1 read]
assert_equal "pmessage * __keyspace@${db}__:myhash hpersist" [$rd1 read]
$rd1 close
}
Expand Down

0 comments on commit 14dd84f

Please sign in to comment.