Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
87c68815
Commit
87c68815
authored
May 25, 2010
by
antirez
Browse files
minor bug fixed in WATCH
parent
37ab76c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
redis-cli.c
View file @
87c68815
...
@@ -175,6 +175,8 @@ static struct redisCommand cmdTable[] = {
...
@@ -175,6 +175,8 @@ static struct redisCommand cmdTable[] = {
{
"psubscribe"
,
-
2
,
CMDFLAG_NONE
},
{
"psubscribe"
,
-
2
,
CMDFLAG_NONE
},
{
"punsubscribe"
,
-
1
,
CMDFLAG_NONE
},
{
"punsubscribe"
,
-
1
,
CMDFLAG_NONE
},
{
"publish"
,
3
,
CMDFLAG_NONE
},
{
"publish"
,
3
,
CMDFLAG_NONE
},
{
"watch"
,
-
2
,
CMDFLAG_NONE
},
{
"unwatch"
,
1
,
CMDFLAG_NONE
},
{
NULL
,
0
,
CMDFLAG_NONE
}
{
NULL
,
0
,
CMDFLAG_NONE
}
};
};
...
...
redis.c
View file @
87c68815
...
@@ -2743,6 +2743,7 @@ static redisClient *createClient(int fd) {
...
@@ -2743,6 +2743,7 @@ static redisClient *createClient(int fd) {
c
->
blocking_keys
=
NULL
;
c
->
blocking_keys
=
NULL
;
c
->
blocking_keys_num
=
0
;
c
->
blocking_keys_num
=
0
;
c
->
io_keys
=
listCreate
();
c
->
io_keys
=
listCreate
();
c
->
watched_keys
=
listCreate
();
listSetFreeMethod
(
c
->
io_keys
,
decrRefCount
);
listSetFreeMethod
(
c
->
io_keys
,
decrRefCount
);
c
->
pubsub_channels
=
dictCreate
(
&
setDictType
,
NULL
);
c
->
pubsub_channels
=
dictCreate
(
&
setDictType
,
NULL
);
c
->
pubsub_patterns
=
listCreate
();
c
->
pubsub_patterns
=
listCreate
();
...
...
staticsymbols.h
View file @
87c68815
...
@@ -289,6 +289,7 @@ static struct redisFunctionSym symsTable[] = {
...
@@ -289,6 +289,7 @@ static struct redisFunctionSym symsTable[] = {
{
"syncReadLine"
,(
unsigned
long
)
syncReadLine
},
{
"syncReadLine"
,(
unsigned
long
)
syncReadLine
},
{
"syncWithMaster"
,(
unsigned
long
)
syncWithMaster
},
{
"syncWithMaster"
,(
unsigned
long
)
syncWithMaster
},
{
"syncWrite"
,(
unsigned
long
)
syncWrite
},
{
"syncWrite"
,(
unsigned
long
)
syncWrite
},
{
"touchWatchedKey"
,(
unsigned
long
)
touchWatchedKey
},
{
"tryFreeOneObjectFromFreelist"
,(
unsigned
long
)
tryFreeOneObjectFromFreelist
},
{
"tryFreeOneObjectFromFreelist"
,(
unsigned
long
)
tryFreeOneObjectFromFreelist
},
{
"tryObjectEncoding"
,(
unsigned
long
)
tryObjectEncoding
},
{
"tryObjectEncoding"
,(
unsigned
long
)
tryObjectEncoding
},
{
"tryResizeHashTables"
,(
unsigned
long
)
tryResizeHashTables
},
{
"tryResizeHashTables"
,(
unsigned
long
)
tryResizeHashTables
},
...
@@ -297,6 +298,8 @@ static struct redisFunctionSym symsTable[] = {
...
@@ -297,6 +298,8 @@ static struct redisFunctionSym symsTable[] = {
{
"unblockClientWaitingData"
,(
unsigned
long
)
unblockClientWaitingData
},
{
"unblockClientWaitingData"
,(
unsigned
long
)
unblockClientWaitingData
},
{
"unlockThreadedIO"
,(
unsigned
long
)
unlockThreadedIO
},
{
"unlockThreadedIO"
,(
unsigned
long
)
unlockThreadedIO
},
{
"unsubscribeCommand"
,(
unsigned
long
)
unsubscribeCommand
},
{
"unsubscribeCommand"
,(
unsigned
long
)
unsubscribeCommand
},
{
"unwatchAllKeys"
,(
unsigned
long
)
unwatchAllKeys
},
{
"unwatchCommand"
,(
unsigned
long
)
unwatchCommand
},
{
"updateDictResizePolicy"
,(
unsigned
long
)
updateDictResizePolicy
},
{
"updateDictResizePolicy"
,(
unsigned
long
)
updateDictResizePolicy
},
{
"updateSlavesWaitingBgsave"
,(
unsigned
long
)
updateSlavesWaitingBgsave
},
{
"updateSlavesWaitingBgsave"
,(
unsigned
long
)
updateSlavesWaitingBgsave
},
{
"usage"
,(
unsigned
long
)
usage
},
{
"usage"
,(
unsigned
long
)
usage
},
...
@@ -325,6 +328,8 @@ static struct redisFunctionSym symsTable[] = {
...
@@ -325,6 +328,8 @@ static struct redisFunctionSym symsTable[] = {
{
"waitEmptyIOJobsQueue"
,(
unsigned
long
)
waitEmptyIOJobsQueue
},
{
"waitEmptyIOJobsQueue"
,(
unsigned
long
)
waitEmptyIOJobsQueue
},
{
"waitForMultipleSwappedKeys"
,(
unsigned
long
)
waitForMultipleSwappedKeys
},
{
"waitForMultipleSwappedKeys"
,(
unsigned
long
)
waitForMultipleSwappedKeys
},
{
"waitForSwappedKey"
,(
unsigned
long
)
waitForSwappedKey
},
{
"waitForSwappedKey"
,(
unsigned
long
)
waitForSwappedKey
},
{
"watchCommand"
,(
unsigned
long
)
watchCommand
},
{
"watchForKey"
,(
unsigned
long
)
watchForKey
},
{
"xorDigest"
,(
unsigned
long
)
xorDigest
},
{
"xorDigest"
,(
unsigned
long
)
xorDigest
},
{
"xorObjectDigest"
,(
unsigned
long
)
xorObjectDigest
},
{
"xorObjectDigest"
,(
unsigned
long
)
xorObjectDigest
},
{
"yesnotoi"
,(
unsigned
long
)
yesnotoi
},
{
"yesnotoi"
,(
unsigned
long
)
yesnotoi
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment