corrected type of variable to get correct rank
- adjusted tests/support/server.tcl to correctly work with Redis for Windows Fixes #23.
This commit is contained in:
+1
-1
@@ -3041,7 +3041,7 @@ void zrankGenericCommand(client *c, int reverse) {
|
||||
robj *key = c->argv[1];
|
||||
robj *ele = c->argv[2];
|
||||
robj *zobj;
|
||||
PORT_ULONG rank;
|
||||
PORT_LONG rank;
|
||||
|
||||
if ((zobj = lookupKeyReadOrReply(c,key,shared.nullbulk)) == NULL ||
|
||||
checkType(c,zobj,OBJ_ZSET)) return;
|
||||
|
||||
@@ -305,7 +305,7 @@ proc start_server {options {code undefined}} {
|
||||
|
||||
# Wait for actual startup
|
||||
while {![info exists _pid]} {
|
||||
regexp {PID:\s(\d+)} [exec cat $stdout] _ _pid
|
||||
regexp -nocase {PID[:=]\s*(\d+)} [exec cat $stdout] _ _pid
|
||||
after 100
|
||||
}
|
||||
|
||||
@@ -334,7 +334,7 @@ proc start_server {options {code undefined}} {
|
||||
|
||||
while 1 {
|
||||
# check that the server actually started and is ready for connections
|
||||
if {[exec grep "ready to accept" | wc -l < $stdout] > 0} {
|
||||
if {[exec grep -i "ready to accept" | wc -l < $stdout] > 0} {
|
||||
break
|
||||
}
|
||||
after 10
|
||||
|
||||
Reference in New Issue
Block a user