Parcourir la source

[1976] Load defaults

Due to some bugs, if nothing is set, the default is not taken into
account. This workaround assures it is loaded at startup. Any future
update is because of a change, so it will work as well.
Michal 'vorner' Vaner il y a 13 ans
Parent
commit
a0607f2c1a
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      src/bin/auth/main.cc

+ 5 - 0
src/bin/auth/main.cc

@@ -207,6 +207,11 @@ main(int argc, char* argv[]) {
 
         // Start the data source configuration
         DataSourceConfigurator::init(config_session, auth_server);
+        // HACK: The default is not passed to the handler. This one will
+        // get the default (or, current value). Further updates will work
+        // the usual way.
+        DataSourceConfigurator::reconfigure(
+            config_session->getRemoteConfigValue("data_sources", "classes"));
 
         // Now start asynchronous read.
         config_session->start();