summaryrefslogtreecommitdiff
path: root/tools/maat_redis_tool.cpp
diff options
context:
space:
mode:
authorliuwentan <[email protected]>2023-05-04 17:10:19 +0800
committerliuwentan <[email protected]>2023-05-04 17:10:19 +0800
commit33015d5aac355773f302151b2f8a7f8986acd261 (patch)
treece3f68a6c82aa2650b262ab68a3a162fe7b96537 /tools/maat_redis_tool.cpp
parentf087a4382d0b4831aebfadd6c165dba848084a3c (diff)
support parse encrypted json config
Diffstat (limited to 'tools/maat_redis_tool.cpp')
-rw-r--r--tools/maat_redis_tool.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/maat_redis_tool.cpp b/tools/maat_redis_tool.cpp
index d0444c6..5f0b073 100644
--- a/tools/maat_redis_tool.cpp
+++ b/tools/maat_redis_tool.cpp
@@ -262,7 +262,7 @@ int write_config_to_redis(redisContext *c, char *json_filename, struct log_handl
}
size_t total_line_cnt = 0;
- config_monitor_traverse(0, tmp_iris_path, NULL, count_line_num_cb, NULL, &total_line_cnt, logger);
+ config_monitor_traverse(0, tmp_iris_path, NULL, count_line_num_cb, NULL, &total_line_cnt, NULL, logger);
struct serial_rule *s_rule = ALLOC(struct serial_rule, total_line_cnt);
s_rule->ref_ctx = c;
@@ -272,7 +272,7 @@ int write_config_to_redis(redisContext *c, char *json_filename, struct log_handl
}
s_rule->timeout = server_time + 300;
- config_monitor_traverse(0, tmp_iris_path, NULL, make_serial_rule, NULL, s_rule, logger);
+ config_monitor_traverse(0, tmp_iris_path, NULL, make_serial_rule, NULL, s_rule, NULL, logger);
s_rule->ref_ctx = NULL;
line_idx = 0;
@@ -467,7 +467,7 @@ int main(int argc, char * argv[])
}
size_t total_line_cnt = 0;
- config_monitor_traverse(0, tmp_iris_path, NULL, count_line_num_cb, NULL, &total_line_cnt, logger);
+ config_monitor_traverse(0, tmp_iris_path, NULL, count_line_num_cb, NULL, &total_line_cnt, NULL, logger);
log_error(logger, MODULE_REDIS_TOOL, "Serialize %s to %zu lines, write temp file to %s .",
json_file, total_line_cnt, tmp_iris_path);
@@ -484,7 +484,7 @@ int main(int argc, char * argv[])
s_rule->timeout = server_time + timeout;
}
log_info(logger, MODULE_REDIS_TOOL, "Timeout = %lld\n", s_rule->timeout);
- config_monitor_traverse(0, tmp_iris_path, NULL, make_serial_rule, NULL, s_rule, logger);
+ config_monitor_traverse(0, tmp_iris_path, NULL, make_serial_rule, NULL, s_rule, NULL, logger);
s_rule->ref_ctx = NULL;
int success_cnt = 0;