File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -785,17 +785,8 @@ void LocalServer::processConfig()
785785 // / Command-line parameters can override settings from the default profile.
786786 applyCmdSettings (global_context);
787787
788- // global once flag
789788 // / We load temporary database first, because projections need it.
790- static std::once_flag db_catalog_once;
791- if (config ().has (" path" ))
792- {
793- DatabaseCatalog::instance ().initializeAndLoadTemporaryDatabase ();
794- }
795- else
796- {
797- std::call_once (db_catalog_once, [&] { DatabaseCatalog::instance ().initializeAndLoadTemporaryDatabase (); });
798- }
789+ DatabaseCatalog::instance ().initializeAndLoadTemporaryDatabase ();
799790
800791 std::string default_database = server_settings.default_database ;
801792 DatabaseCatalog::instance ().attachDatabase (default_database, createClickHouseLocalDatabaseOverlay (default_database, global_context));
You can’t perform that action at this time.
0 commit comments