[PATCH]add regex benchmark
This commit is contained in:
@@ -821,7 +821,7 @@ static int write_group_rule(cJSON *group_json, int parent_id,
|
||||
if (NULL == region_json && NULL == sub_groups) {
|
||||
log_info(logger, MODULE_JSON2IRIS,
|
||||
"[%s:%d] A group of compile rule %d has neither regions, "
|
||||
"sub groups, nor refered another exisited group",
|
||||
"sub groups, nor refered another existed group",
|
||||
__FUNCTION__, __LINE__, tracking_compile_id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1293,7 +1293,7 @@ static int maat_remove_group_from_compile(struct rcu_hash_table *hash_tbl,
|
||||
if (NULL == compile) {
|
||||
log_error(logger, MODULE_COMPILE,
|
||||
"[%s:%d] Remove group_id:%lld from compile_id:%lld failed, compile"
|
||||
" is not exisited.", __FUNCTION__, __LINE__, g2c_item->group_id,
|
||||
" is not existed.", __FUNCTION__, __LINE__, g2c_item->group_id,
|
||||
compile_id);
|
||||
return -1;
|
||||
} else {
|
||||
@@ -1349,7 +1349,7 @@ static int maat_remove_group_from_compile(struct rcu_hash_table *hash_tbl,
|
||||
} else {
|
||||
log_error(logger, MODULE_COMPILE,
|
||||
"[%s:%d] Remove group_id:%lld from compile_id:%lld failed, "
|
||||
"compile is not exisited.", __FUNCTION__, __LINE__,
|
||||
"compile is not existed.", __FUNCTION__, __LINE__,
|
||||
g2c_item->group_id, compile_id);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ static int cm_read_cfg_index_file(const char *path, struct cm_table_info_t *idx,
|
||||
|
||||
ret = stat(idx[i].cfg_path, &file_info);
|
||||
if (ret != 0) {
|
||||
log_error(logger, MODULE_CONFIG_MONITOR, "%s of %s not exisit",
|
||||
log_error(logger, MODULE_CONFIG_MONITOR, "%s of %s not exist",
|
||||
idx[i].cfg_path, path);
|
||||
fclose(fp);
|
||||
return -1;
|
||||
|
||||
@@ -582,7 +582,7 @@ static int group_topology_add_group_to_group(struct maat_group_topology *group_t
|
||||
//No duplicated edges between two groups.
|
||||
if (edge_id > 0) {
|
||||
log_error(group_topo->logger, MODULE_GROUP,
|
||||
"[%s:%d] Add group %d to group %d failed, relation already exisited.",
|
||||
"[%s:%d] Add group %d to group %d failed, relation already existed.",
|
||||
__FUNCTION__, __LINE__, group->group_id, super_group->group_id);
|
||||
ret = -1;
|
||||
} else {
|
||||
@@ -608,7 +608,7 @@ static int group_topology_del_group_from_group(struct maat_group_topology *group
|
||||
struct maat_group *group = group_topology_find_group(group_topo, group_id);
|
||||
if (NULL == group) {
|
||||
log_error(group_topo->logger, MODULE_GROUP,
|
||||
"[%s:%d] Del group %d from group %d failed, group %d not exisited.",
|
||||
"[%s:%d] Del group %d from group %d failed, group %d not existed.",
|
||||
__FUNCTION__, __LINE__, group_id, super_group_id, group_id);
|
||||
return -1;
|
||||
}
|
||||
@@ -616,7 +616,7 @@ static int group_topology_del_group_from_group(struct maat_group_topology *group
|
||||
struct maat_group *super_group = group_topology_find_group(group_topo, super_group_id);
|
||||
if (NULL == super_group) {
|
||||
log_error(group_topo->logger, MODULE_GROUP,
|
||||
"[%s:%d] Del group %d from group %d failed, superior group %d not exisited.",
|
||||
"[%s:%d] Del group %d from group %d failed, superior group %d not existed.",
|
||||
__FUNCTION__, __LINE__, group_id, super_group_id, super_group_id);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -1138,7 +1138,7 @@ static void exec_serial_rule(redisContext *c, const char *transaction_list,
|
||||
(*cnt)++;
|
||||
append_cmd_cnt++;
|
||||
|
||||
//NX: Don't update already exisiting elements. Always add new elements.
|
||||
//NX: Don't update already existing elements. Always add new elements.
|
||||
redisAppendCommand(c, "RPUSH %s DEL,%s,%lld",
|
||||
transaction_list,
|
||||
s_rule[i].table_name,
|
||||
|
||||
Reference in New Issue
Block a user