Permalink
Browse files

Fix for Pub/Sub system, introduced in Redis 2.2.6 with the new copy-o…

…n-write safe iterator semantics. In the hope this is the last bug I introduced this way.
  • Loading branch information...
1 parent 1f036c6 commit e5dbbc20f16e3ae6ec170f7d8370f1fbd9ae9469 @antirez committed May 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/pubsub.c
View
@@ -141,7 +141,7 @@ int pubsubUnsubscribePattern(redisClient *c, robj *pattern, int notify) {
/* Unsubscribe from all the channels. Return the number of channels the
* client was subscribed from. */
int pubsubUnsubscribeAllChannels(redisClient *c, int notify) {
- dictIterator *di = dictGetIterator(c->pubsub_channels);
+ dictIterator *di = dictGetSafeIterator(c->pubsub_channels);
dictEntry *de;
int count = 0;

0 comments on commit e5dbbc2

Please sign in to comment.