avoid invoke_on_all during developer-mode application if possible

Message-Id: <20160315145327.GW6117@scylladb.com>
This commit is contained in:
Gleb Natapov
2016-03-15 16:53:27 +02:00
committed by Pekka Enberg
parent 2eb0627665
commit ea92064d38

View File

@@ -347,11 +347,9 @@ int main(int ac, char** av) {
using namespace locator;
// Re-apply strict-dma after we've read the config file, this time
// to all reactors
smp::invoke_on_all([devmode = opts.count("developer-mode")] {
if (devmode) {
engine().set_strict_dma(false);
}
}).get();
if (opts.count("developer-mode")) {
smp::invoke_on_all([] { engine().set_strict_dma(false); }).get();
}
supervisor_notify("creating snitch");
i_endpoint_snitch::create_snitch(cfg->endpoint_snitch()).get();
// #293 - do not stop anything