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

@@ -380,8 +380,11 @@ fqdn_plugin_runtime_update_row(struct fqdn_plugin_runtime *fqdn_plugin_rt,
ret = ex_data_runtime_add_ex_container(ex_data_rt, key, key_len,
ex_container);
if (ret < 0) {
log_debug(fqdn_plugin_rt->logger, MODULE_FQDN_PLUGIN,
"[%s:%d]fqdn_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
}
}