diff --git a/doc/user/content/release_notes/_index.md b/doc/user/content/release_notes/_index.md index f92bd478c..985c71d4c 100644 --- a/doc/user/content/release_notes/_index.md +++ b/doc/user/content/release_notes/_index.md @@ -32,6 +32,7 @@ insert_anchor_links = "right" - Improved robustness of limit system test - Fixed a bug in handling of built-in bts to user that could lead to failure to login as bts in old systems - Improved market data subsystem to support security definition updates + - Fixed a startup race in market data that could lead to data corruption on startup ## 1.4.11 diff --git a/src/lib/md/MDConsumer.cpp b/src/lib/md/MDConsumer.cpp index e296fc1d6..20a4f73da 100644 --- a/src/lib/md/MDConsumer.cpp +++ b/src/lib/md/MDConsumer.cpp @@ -170,7 +170,7 @@ public: if (_hot_depth) { _hot_depth->all_entries([&](const HotDepthEntry& entry) { auto iter = handles.find(entry.key); - if (iter != handles.end()) { + if (iter != handles.end() && iter->second.is_initialized()) { iter->second.set_hot(&entry); } }); @@ -178,7 +178,7 @@ public: else if (_hot){ _hot->all_entries([&](const HotEntry& entry) { auto iter = handles.find(entry.key); - if (iter != handles.end()) { + if (iter != handles.end() && iter->second.is_initialized()) { iter->second.set_hot(&entry); } });