修复redis_flush_DB函数中redis append操作,命令计数漏加的bug。

This commit is contained in:
zhengchao
2018-03-16 15:23:58 +08:00
parent 6b2f08fd04
commit 2bd813ffbc
3 changed files with 8 additions and 3 deletions

View File

@@ -1059,7 +1059,11 @@ int main(int argc,char* argv[])
test_command(feather);
test_set_cmd_line(feather);
test_add_ip_command(feather,"IP_CONFIG");
Maat_cmd_flushDB(feather);
if(0==Maat_cmd_flushDB(feather))
{
printf("Test empty Redis Success.\n");
}
test_set_cmd_line(feather);
}
test_sfh_digest(test_digest_file);
sleep(wait_second);