diff options
| author | zhengchao <[email protected]> | 2018-02-11 14:10:22 +0800 |
|---|---|---|
| committer | zhengchao <[email protected]> | 2018-02-11 14:10:22 +0800 |
| commit | e863c04f8c3bfd6b83968e05b0ffa42d4e4236c6 (patch) | |
| tree | 8e9a3fc05d849766c745aa7ced6cb9e5a72f211a /tools | |
| parent | 4d8e5f8e25ee526bafe03c514476d44f7f256406 (diff) | |
改进maat_redis_tool在-j命令下的输出。
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/maat_redis_tool.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/maat_redis_tool.cpp b/tools/maat_redis_tool.cpp index 4304117..f5fdbcc 100644 --- a/tools/maat_redis_tool.cpp +++ b/tools/maat_redis_tool.cpp @@ -193,7 +193,7 @@ int make_serial_rule(const char* table_name,const char* line,void *u_para) { buff[strlen(buff)-1]='\0'; } - + //printf("Writing table %s, rule_id=%d, timeout=%lld, is_valid=%d\n", table_name, rule_id,absolute_expire_time,is_valid); set_serial_rule(s_rule+line_idx, (enum MAAT_OPERATION)is_valid, rule_id, 0, table_name, buff, absolute_expire_time); line_idx++; free(str1); @@ -311,7 +311,7 @@ int main(int argc, char * argv[]) } total_line_cnt=0; config_monitor_traverse(0, tmp_iris_path, NULL, count_line_num, NULL, &total_line_cnt,NULL, NULL); - printf("Serialize %s to %d lines.\nNote that group reuse is NOT supported.\n",json_file, total_line_cnt); + 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(timeout>0) @@ -319,6 +319,7 @@ int main(int argc, char * argv[]) absolute_expire_time=server_time+timeout; } config_monitor_traverse(0, tmp_iris_path, NULL, make_serial_rule, NULL, s_rule,NULL, NULL); + printf("Timeout=%lld\n",absolute_expire_time); ret=0; while(success_cnt<total_line_cnt) { |
