"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/unit/scripting.tcl" between
redis-6.2-rc3.tar.gz and redis-6.2.0.tar.gz

About: redis is an advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

scripting.tcl  (redis-6.2-rc3):scripting.tcl  (redis-6.2.0)
skipping to change at line 471 skipping to change at line 471
} else { } else {
fail "AOF rewrite can't complete after CONFIG SET appendonly yes." fail "AOF rewrite can't complete after CONFIG SET appendonly yes."
} }
r config set slave-read-only yes r config set slave-read-only yes
r slaveof 127.0.0.1 0 r slaveof 127.0.0.1 0
r debug loadaof r debug loadaof
set res [r get foo] set res [r get foo]
r slaveof no one r slaveof no one
set res set res
} {102} } {102}
r config set aof-use-rdb-preamble yes
test {EVAL timeout from AOF} { test {EVAL timeout from AOF} {
# generate a long running script that is propagated to the AOF as script # generate a long running script that is propagated to the AOF as script
# make sure that the script times out during loading # make sure that the script times out during loading
r config set appendonly no r config set appendonly no
r config set aof-use-rdb-preamble no r config set aof-use-rdb-preamble no
r config set lua-replicate-commands no r config set lua-replicate-commands no
r flushall r flushall
r config set appendonly yes r config set appendonly yes
wait_for_condition 50 100 { wait_for_condition 50 100 {
skipping to change at line 508 skipping to change at line 509
$rd flush $rd flush
after 100 after 100
catch {r ping} err catch {r ping} err
assert_match {LOADING*} $err assert_match {LOADING*} $err
$rd read $rd read
set elapsed [expr [clock clicks -milliseconds]-$start] set elapsed [expr [clock clicks -milliseconds]-$start]
if {$::verbose} { puts "loading took $elapsed milliseconds" } if {$::verbose} { puts "loading took $elapsed milliseconds" }
$rd close $rd close
r get x r get x
} {y} } {y}
r config set aof-use-rdb-preamble yes
r config set lua-replicate-commands yes
test {We can call scripts rewriting client->argv from Lua} { test {We can call scripts rewriting client->argv from Lua} {
r del myset r del myset
r sadd myset a b c r sadd myset a b c
r mset a 1 b 2 c 3 d 4 r mset a 1 b 2 c 3 d 4
assert {[r spop myset] ne {}} assert {[r spop myset] ne {}}
assert {[r spop myset 1] ne {}} assert {[r spop myset 1] ne {}}
assert {[r spop myset] ne {}} assert {[r spop myset] ne {}}
assert {[r mget a b c d] eq {1 2 3 4}} assert {[r mget a b c d] eq {1 2 3 4}}
assert {[r spop myset] eq {}} assert {[r spop myset] eq {}}
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)