From 7a7c1dcd89ead98a8b0151540bbef04fc218a2e9 Mon Sep 17 00:00:00 2001 From: Eric Harding Date: Tue, 12 Feb 2019 09:33:53 -0500 Subject: [PATCH 1/2] SPARK-2024 Fix crash in md race --- src/lib/md/MDConsumer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }); From cafe67e5094d9de7d94ce4df78f9d9b539060eab Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Tue, 19 Feb 2019 13:48:23 -0500 Subject: [PATCH 2/2] Updated release notes. --- doc/user/content/release_notes/_index.md | 1 + 1 file changed, 1 insertion(+) 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