fix workload entity storage start

This commit is contained in:
serxa 2024-09-01 17:28:56 +00:00
parent 93bcf2d8bc
commit 31e2205c4e

View File

@ -86,6 +86,7 @@
#include <Disks/registerDisks.h> #include <Disks/registerDisks.h>
#include <Common/Scheduler/Nodes/registerSchedulerNodes.h> #include <Common/Scheduler/Nodes/registerSchedulerNodes.h>
#include <Common/Scheduler/Nodes/registerResourceManagers.h> #include <Common/Scheduler/Nodes/registerResourceManagers.h>
#include <Common/Scheduler/Workload/IWorkloadEntityStorage.h>
#include <Common/Config/ConfigReloader.h> #include <Common/Config/ConfigReloader.h>
#include <Server/HTTPHandlerFactory.h> #include <Server/HTTPHandlerFactory.h>
#include "MetricsTransmitter.h" #include "MetricsTransmitter.h"
@ -2089,7 +2090,7 @@ try
/// Load user-defined SQL functions. /// Load user-defined SQL functions.
global_context->getUserDefinedSQLObjectsStorage().loadObjects(); global_context->getUserDefinedSQLObjectsStorage().loadObjects();
/// Load WORKLOADs and RESOURCEs. /// Load WORKLOADs and RESOURCEs.
global_context->getWorkloadEntityStorage().loadObjects(); global_context->getWorkloadEntityStorage().loadEntities();
} }
catch (...) catch (...)
{ {