add dup key don't output fatal log

This commit is contained in:
liuchang
2024-04-24 08:16:57 +00:00
parent 56238be701
commit d8d7f38efc
9 changed files with 29 additions and 17 deletions

View File

@@ -385,8 +385,11 @@ ip_plugin_runtime_update_row(struct ip_plugin_runtime *ip_plugin_rt,
ret = ex_data_runtime_add_ex_container(ex_data_rt, key, key_len,
ex_container);
if (ret < 0) {
log_debug(ip_plugin_rt->logger, MODULE_IP_PLUGIN,
"[%s:%d]ip_plugin table:<%s> add key failed, "
"key:%s", __FUNCTION__, __LINE__, table_name, key);
ex_container_free(ex_data_rt, ex_container);
return -1;
//don't return failed, ignore the case of adding duplicate keys
}
}