mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-28 10:41:12 +00:00
avoid invoke_on_all during developer-mode application if possible
Message-Id: <20160315145327.GW6117@scylladb.com>
This commit is contained in:
committed by
Pekka Enberg
parent
2eb0627665
commit
ea92064d38
8
main.cc
8
main.cc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user