mirror of
https://github.com/fluencelabs/redis
synced 2025-05-05 07:22:15 +00:00
Added a missing server.dirty increment in a non critical place, added more tests
This commit is contained in:
parent
c632369b52
commit
fdcaae84d3
3
redis.c
3
redis.c
@ -3968,7 +3968,8 @@ static void sinterGenericCommand(redisClient *c, robj **setskeys, unsigned long
|
|||||||
if (!setobj) {
|
if (!setobj) {
|
||||||
zfree(dv);
|
zfree(dv);
|
||||||
if (dstkey) {
|
if (dstkey) {
|
||||||
deleteKey(c->db,dstkey);
|
if (deleteKey(c->db,dstkey))
|
||||||
|
server.dirty++;
|
||||||
addReply(c,shared.czero);
|
addReply(c,shared.czero);
|
||||||
} else {
|
} else {
|
||||||
addReply(c,shared.nullmultibulk);
|
addReply(c,shared.nullmultibulk);
|
||||||
|
@ -530,6 +530,12 @@ proc main {server port} {
|
|||||||
list [$r lrange mylist 0 -1] [$r type newlist] [string range $err 0 2]
|
list [$r lrange mylist 0 -1] [$r type newlist] [string range $err 0 2]
|
||||||
} {{a b c d} string ERR}
|
} {{a b c d} string ERR}
|
||||||
|
|
||||||
|
test {RPOPLPUSH against non existing src key} {
|
||||||
|
$r del mylist
|
||||||
|
$r del newlist
|
||||||
|
$r rpoplpush mylist newlist
|
||||||
|
} {}
|
||||||
|
|
||||||
test {RENAME basic usage} {
|
test {RENAME basic usage} {
|
||||||
$r set mykey hello
|
$r set mykey hello
|
||||||
$r rename mykey mykey1
|
$r rename mykey mykey1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user