Browse 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 13 years ago
parent
commit
a0607f2c1a
1 changed files with 5 additions and 0 deletions
  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();