1) Master should create the config table if it's not there.

This commit is contained in:
Eric Tschetter 2013-03-08 12:41:46 -06:00
parent 53c8ba6e75
commit d1161ae0ec
1 changed files with 3 additions and 1 deletions

View File

@ -185,8 +185,10 @@ public class MasterMain
masterYp
);
final ConfigManagerConfig configManagerConfig = configFactory.build(ConfigManagerConfig.class);
DbConnector.createConfigTable(dbi, configManagerConfig.getConfigTable());
JacksonConfigManager configManager = new JacksonConfigManager(
new ConfigManager(dbi, configFactory.build(ConfigManagerConfig.class)), jsonMapper
new ConfigManager(dbi, configManagerConfig), jsonMapper
);
final DruidMaster master = new DruidMaster(