Merge pull request #6905 from guybe7/xgroup_destroy_unblock

XGROUP DESTROY should unblock XREADGROUP with -NOGROUP
This commit is contained in:
Salvatore Sanfilippo
2020-02-20 12:54:14 +01:00
committed by GitHub
2 changed files with 11 additions and 0 deletions

View File

@ -1850,6 +1850,8 @@ NULL
server.dirty++;
notifyKeyspaceEvent(NOTIFY_STREAM,"xgroup-destroy",
c->argv[2],c->db->id);
/* We want to unblock any XREADGROUP consumers with -NOGROUP. */
signalKeyAsReady(c->db,c->argv[2]);
} else {
addReply(c,shared.czero);
}