mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +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) {
|
||||
zfree(dv);
|
||||
if (dstkey) {
|
||||
deleteKey(c->db,dstkey);
|
||||
if (deleteKey(c->db,dstkey))
|
||||
server.dirty++;
|
||||
addReply(c,shared.czero);
|
||||
} else {
|
||||
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]
|
||||
} {{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} {
|
||||
$r set mykey hello
|
||||
$r rename mykey mykey1
|
||||
|
Loading…
x
Reference in New Issue
Block a user