summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/storage_timestamp_tests.cpp
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2020-09-22 16:03:46 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-23 16:49:17 +0000
commit669e5650151733738ce8270e5bdf3c5759665316 (patch)
tree40e8d2b26c236fd3effe64d5fd04b7a05162f1ec /src/mongo/dbtests/storage_timestamp_tests.cpp
parent0e044981649f6712b3cc3f39bdb41c6e06546815 (diff)
downloadmongo-669e5650151733738ce8270e5bdf3c5759665316.tar.gz
SERVER-47866 Secondary readers do not need to reacquire PBWM lock if there are catalog conflicts
Diffstat (limited to 'src/mongo/dbtests/storage_timestamp_tests.cpp')
-rw-r--r--src/mongo/dbtests/storage_timestamp_tests.cpp5
1 files changed, 2 insertions, 3 deletions
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