summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/storage_timestamp_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/storage_timestamp_tests.cpp')
-rw-r--r--src/mongo/dbtests/storage_timestamp_tests.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/dbtests/storage_timestamp_tests.cpp b/src/mongo/dbtests/storage_timestamp_tests.cpp
index e20ace4c166..7c993fa41ff 100644
--- a/src/mongo/dbtests/storage_timestamp_tests.cpp
+++ b/src/mongo/dbtests/storage_timestamp_tests.cpp
@@ -269,6 +269,7 @@ public:
}
ASSERT_OK(indexer.insertAllDocumentsInCollection(_opCtx, coll));
+ ASSERT_OK(indexer.checkConstraints(_opCtx));
{
WriteUnitOfWork wuow(_opCtx);
@@ -1894,6 +1895,7 @@ public:
// Inserting all the documents has the side-effect of setting internal state on the index
// builder that the index is multikey.
ASSERT_OK(indexer.insertAllDocumentsInCollection(_opCtx, autoColl.getCollection()));
+ ASSERT_OK(indexer.checkConstraints(_opCtx));
{
WriteUnitOfWork wuow(_opCtx);
@@ -2074,6 +2076,8 @@ public:
ASSERT_TRUE(buildingIndex->indexBuildInterceptor()->areAllWritesApplied(_opCtx));
}
+ ASSERT_OK(indexer.checkConstraints(_opCtx));
+
{
WriteUnitOfWork wuow(_opCtx);
ASSERT_OK(indexer.commit(