提交 87c68815 编写于 作者: A antirez

minor bug fixed in WATCH

上级 37ab76c9
......@@ -175,6 +175,8 @@ static struct redisCommand cmdTable[] = {
{"psubscribe",-2,CMDFLAG_NONE},
{"punsubscribe",-1,CMDFLAG_NONE},
{"publish",3,CMDFLAG_NONE},
{"watch",-2,CMDFLAG_NONE},
{"unwatch",1,CMDFLAG_NONE},
{NULL,0,CMDFLAG_NONE}
};
......
......@@ -2743,6 +2743,7 @@ static redisClient *createClient(int fd) {
c->blocking_keys = NULL;
c->blocking_keys_num = 0;
c->io_keys = listCreate();
c->watched_keys = listCreate();
listSetFreeMethod(c->io_keys,decrRefCount);
c->pubsub_channels = dictCreate(&setDictType,NULL);
c->pubsub_patterns = listCreate();
......
......@@ -289,6 +289,7 @@ static struct redisFunctionSym symsTable[] = {
{"syncReadLine",(unsigned long)syncReadLine},
{"syncWithMaster",(unsigned long)syncWithMaster},
{"syncWrite",(unsigned long)syncWrite},
{"touchWatchedKey",(unsigned long)touchWatchedKey},
{"tryFreeOneObjectFromFreelist",(unsigned long)tryFreeOneObjectFromFreelist},
{"tryObjectEncoding",(unsigned long)tryObjectEncoding},
{"tryResizeHashTables",(unsigned long)tryResizeHashTables},
......@@ -297,6 +298,8 @@ static struct redisFunctionSym symsTable[] = {
{"unblockClientWaitingData",(unsigned long)unblockClientWaitingData},
{"unlockThreadedIO",(unsigned long)unlockThreadedIO},
{"unsubscribeCommand",(unsigned long)unsubscribeCommand},
{"unwatchAllKeys",(unsigned long)unwatchAllKeys},
{"unwatchCommand",(unsigned long)unwatchCommand},
{"updateDictResizePolicy",(unsigned long)updateDictResizePolicy},
{"updateSlavesWaitingBgsave",(unsigned long)updateSlavesWaitingBgsave},
{"usage",(unsigned long)usage},
......@@ -325,6 +328,8 @@ static struct redisFunctionSym symsTable[] = {
{"waitEmptyIOJobsQueue",(unsigned long)waitEmptyIOJobsQueue},
{"waitForMultipleSwappedKeys",(unsigned long)waitForMultipleSwappedKeys},
{"waitForSwappedKey",(unsigned long)waitForSwappedKey},
{"watchCommand",(unsigned long)watchCommand},
{"watchForKey",(unsigned long)watchForKey},
{"xorDigest",(unsigned long)xorDigest},
{"xorObjectDigest",(unsigned long)xorObjectDigest},
{"yesnotoi",(unsigned long)yesnotoi},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册