From 669e5650151733738ce8270e5bdf3c5759665316 Mon Sep 17 00:00:00 2001 From: Louis Williams Date: Tue, 22 Sep 2020 16:03:46 -0400 Subject: SERVER-47866 Secondary readers do not need to reacquire PBWM lock if there are catalog conflicts --- src/mongo/dbtests/storage_timestamp_tests.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mongo/dbtests/storage_timestamp_tests.cpp') diff --git a/src/mongo/dbtests/storage_timestamp_tests.cpp b/src/mongo/dbtests/storage_timestamp_tests.cpp index e7c007b5835..a70b5b42402 100644 --- a/src/mongo/dbtests/storage_timestamp_tests.cpp +++ b/src/mongo/dbtests/storage_timestamp_tests.cpp @@ -1618,9 +1618,8 @@ public: AutoGetCollection autoColl(_opCtx, nss, LockMode::MODE_IX); - // It is not valid to read the multikey state earlier than the 'minimumVisibleTimestamp', - // so at least assert that it has been updated due to the index creation. - ASSERT_GT(autoColl.getCollection()->getMinimumVisibleSnapshot().get(), + // Ensure minimumVisible has not been updated due to the index creation. + ASSERT_LT(autoColl.getCollection()->getMinimumVisibleSnapshot().get(), pastTime.asTimestamp()); // Reading the multikey state before 'insertTime0' is not valid or reliable to test. If the -- cgit v1.2.1