"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/helpers/bg_block_op.tcl" between
redis-6.2.4.tar.gz and redis-6.2.5.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.

bg_block_op.tcl  (redis-6.2.4):bg_block_op.tcl  (redis-6.2.5)
skipping to change at line 15 skipping to change at line 15
# This function sometimes writes sometimes blocking-reads from lists/sorted # This function sometimes writes sometimes blocking-reads from lists/sorted
# sets. There are multiple processes like this executing at the same time # sets. There are multiple processes like this executing at the same time
# so that we have some chance to trap some corner condition if there is # so that we have some chance to trap some corner condition if there is
# a regression. For this to happen it is important that we narrow the key # a regression. For this to happen it is important that we narrow the key
# space to just a few elements, and balance the operations so that it is # space to just a few elements, and balance the operations so that it is
# unlikely that lists and zsets just get more data without ever causing # unlikely that lists and zsets just get more data without ever causing
# blocking. # blocking.
proc bg_block_op {host port db ops tls} { proc bg_block_op {host port db ops tls} {
set r [redis $host $port 0 $tls] set r [redis $host $port 0 $tls]
$r client setname LOAD_HANDLER
$r select $db $r select $db
for {set j 0} {$j < $ops} {incr j} { for {set j 0} {$j < $ops} {incr j} {
# List side # List side
set k list_[randomInt 10] set k list_[randomInt 10]
set k2 list_[randomInt 10] set k2 list_[randomInt 10]
set v [randomValue] set v [randomValue]
randpath { randpath {
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

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