Skip to content

Commit

Permalink
multi-tenant: don't init config twice in tenant reload
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed Aug 11, 2023
1 parent c87803e commit 227caf1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/runmode-unix-socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,15 +1103,6 @@ TmEcode UnixSocketReloadTenant(json_t *cmd, json_t* answer, void *data)

SCLogDebug("reload-tenant: %d %s", tenant_id, filename);

char prefix[64];
snprintf(prefix, sizeof(prefix), "multi-detect.%d.reload.%d", tenant_id, reload_cnt);
SCLogInfo("prefix %s", prefix);

if (ConfYamlLoadFileWithPrefix(filename, prefix) != 0) {
json_object_set_new(answer, "message", json_string("failed to load yaml"));
return TM_ECODE_FAILED;
}

/* 3 load into the system */
if (DetectEngineReloadTenantBlocking(tenant_id, filename, reload_cnt) != 0) {
json_object_set_new(answer, "message", json_string("reload tenant failed"));
Expand Down

0 comments on commit 227caf1

Please sign in to comment.