Spark-681 Synthetics can be lost on startup due to race.

This commit is contained in:
Eric Harding committed 2018-03-19 16:06:51 -04:00
1 parent 6079d7f02d
commit 247365d762
2 files changed
+56 -25

No files matched your search

+1 -1
View File
@@ -73,10 +73,10 @@ void run_cleanup() {
std::thread* _md_thread;
void run_market_datapublishers(bool should_return) {
bts_assert(_md_thread == nullptr);
run_cleanup();
// start a thread for the md
_md_thread = new std::thread([]() {
os::set_thread_name("md publisher");
run_cleanup();
if (config::get<MarketDataConfig>().use_replay()) {
run_replay();