Skip to content

Commit 045c8e2

Browse files
committed
Init NamedCollections after setup users
1 parent 08863d2 commit 045c8e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

programs/local/LocalServer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <Common/Exception.h>
2424
#include <Common/Macros.h>
2525
#include <Common/Config/ConfigProcessor.h>
26+
#include <Common/NamedCollections/NamedCollectionUtils.h>
2627
#include <Common/ThreadStatus.h>
2728
#include <Common/TLDListsHolder.h>
2829
#include <Common/quoteString.h>
@@ -391,7 +392,10 @@ void LocalServer::setupUsers()
391392
else
392393
users_config = getConfigurationFromXMLString(minimal_default_user_xml);
393394
if (users_config)
395+
{
394396
global_context->setUsersConfig(users_config);
397+
NamedCollectionUtils::loadIfNot();
398+
}
395399
else
396400
throw Exception(ErrorCodes::CANNOT_LOAD_CONFIG, "Can't load config for users");
397401
}

0 commit comments

Comments
 (0)