From 227caf1315738b53f947d0015de9a2a8d0e3574d Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 8 Aug 2023 19:59:24 +0200 Subject: [PATCH] multi-tenant: don't init config twice in tenant reload --- src/runmode-unix-socket.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/runmode-unix-socket.c b/src/runmode-unix-socket.c index e1baa0656efe..5216efc2de6c 100644 --- a/src/runmode-unix-socket.c +++ b/src/runmode-unix-socket.c @@ -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"));