From c57b832305e7570f51041c11a7671bbcc91c1916 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Tue, 26 Jan 2021 16:22:14 -0600 Subject: [PATCH] fix: Only flip implied_candidates_dirty when they've actually changed --- .../cmds/spartan/back_testing/matcher/FifoMatcherContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/sparkd/cmds/spartan/back_testing/matcher/FifoMatcherContext.cpp b/src/server/sparkd/cmds/spartan/back_testing/matcher/FifoMatcherContext.cpp index 893adb499..e28ee2543 100644 --- a/src/server/sparkd/cmds/spartan/back_testing/matcher/FifoMatcherContext.cpp +++ b/src/server/sparkd/cmds/spartan/back_testing/matcher/FifoMatcherContext.cpp @@ -95,13 +95,13 @@ bool FifoMatcherContext::add_security( sec_id, new FifoMergedSecurityMatcher( {sec_id, _me->ignore_ops_on_deleted_orders, _me->trace}))); + _me->implied_candidates_dirty = true; } else { // Not sure why, but [John]I've seen _me->symbols contain empty strings. // Overwrite the existing value to ensure a valid symbol. _me->symbols[sec_id] = symbol; return false; } - _me->implied_candidates_dirty = true; return true; }