summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorzhengchao <[email protected]>2019-07-28 19:13:04 +0600
committerzhengchao <[email protected]>2019-07-28 19:13:04 +0600
commit3473cf6dd48497873a5c1febf5bec25347d49fb1 (patch)
tree4e2d3d4586031d286ecab0d9f13132a2775d226a /tools
parent718bbc59ddb5840e13ca2353a8abee36dba9775b (diff)
增加性能测试用例,处理无法获取redis time的异常。
Diffstat (limited to 'tools')
-rw-r--r--tools/maat_redis_tool.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/maat_redis_tool.cpp b/tools/maat_redis_tool.cpp
index 60a648d..58ba87e 100644
--- a/tools/maat_redis_tool.cpp
+++ b/tools/maat_redis_tool.cpp
@@ -336,6 +336,10 @@ int main(int argc, char * argv[])
printf("Serialize %s to %d lines, write temp file to %s .\n",json_file, total_line_cnt, tmp_iris_path);
struct serial_rule_t * s_rule=(struct serial_rule_t *)calloc(sizeof(struct serial_rule_t),total_line_cnt);
server_time=redis_server_time(ctx);
+ if(!server_time)
+ {
+ printf("Get Redis Time failed.\n");
+ }
if(timeout>0)
{
absolute_expire_time=server_time+timeout;