diff options
author | Gregory Noma <gregory.noma@gmail.com> | 2021-12-01 15:21:59 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-12-01 16:15:37 +0000 |
commit | 75304d9335578de7291e774b824995b6ef1898e1 (patch) | |
tree | 07e7242e055bcd21bbcc6d35c06f5507a3286508 /src/mongo/dbtests/validate_tests.cpp | |
parent | eb7f44a814968b3785e78fa10a268fb3e0fd6b3e (diff) | |
download | mongo-75304d9335578de7291e774b824995b6ef1898e1.tar.gz |
SERVER-61606 Don't perform untimestamped catalog writes when index builds reapply skipped records
Diffstat (limited to 'src/mongo/dbtests/validate_tests.cpp')
-rw-r--r-- | src/mongo/dbtests/validate_tests.cpp | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/src/mongo/dbtests/validate_tests.cpp b/src/mongo/dbtests/validate_tests.cpp index 768c897f113..7fe436054d6 100644 --- a/src/mongo/dbtests/validate_tests.cpp +++ b/src/mongo/dbtests/validate_tests.cpp @@ -871,8 +871,7 @@ public: &keys, nullptr, nullptr, - id1, - IndexAccessMethod::kNoopOnSuppressedErrorFn); + id1); auto removeStatus = iam->removeKeys(&_opCtx, {keys.begin(), keys.end()}, id1, options, &numDeleted); @@ -1276,8 +1275,7 @@ public: &keys, nullptr, nullptr, - rid, - IndexAccessMethod::kNoopOnSuppressedErrorFn); + rid); auto removeStatus = iam->removeKeys(&_opCtx, {keys.begin(), keys.end()}, rid, options, &numDeleted); @@ -1661,8 +1659,7 @@ public: &keys, nullptr, nullptr, - rid, - IndexAccessMethod::kNoopOnSuppressedErrorFn); + rid); auto removeStatus = iam->removeKeys(&_opCtx, {keys.begin(), keys.end()}, rid, options, &numDeleted); @@ -2009,8 +2006,7 @@ public: &keys, nullptr, nullptr, - swRecordId.getValue(), - IndexAccessMethod::kNoopOnSuppressedErrorFn); + swRecordId.getValue()); ASSERT_EQ(1, keys.size()); { @@ -2060,8 +2056,7 @@ public: &keys, nullptr, nullptr, - rid, - IndexAccessMethod::kNoopOnSuppressedErrorFn); + rid); auto removeStatus = iam->removeKeys(&_opCtx, {keys.begin(), keys.end()}, rid, options, &numDeleted); @@ -2199,8 +2194,7 @@ public: &keys, nullptr, nullptr, - id1, - IndexAccessMethod::kNoopOnSuppressedErrorFn); + id1); ASSERT_EQ(keys.size(), 1); int64_t numDeleted; @@ -2405,8 +2399,7 @@ public: &keys, nullptr, nullptr, - rid, - IndexAccessMethod::kNoopOnSuppressedErrorFn); + rid); auto removeStatus = iam->removeKeys(&_opCtx, {keys.begin(), keys.end()}, rid, options, &numDeleted); @@ -2444,8 +2437,7 @@ public: &keys, nullptr, nullptr, - rid, - IndexAccessMethod::kNoopOnSuppressedErrorFn); + rid); auto removeStatus = iam->removeKeys(&_opCtx, {keys.begin(), keys.end()}, rid, options, &numDeleted); @@ -2560,8 +2552,7 @@ public: &keys, nullptr, nullptr, - swRecordId.getValue(), - IndexAccessMethod::kNoopOnSuppressedErrorFn); + swRecordId.getValue()); ASSERT_EQ(1, keys.size()); { @@ -2607,8 +2598,7 @@ public: &keys, nullptr, nullptr, - swRecordId.getValue(), - IndexAccessMethod::kNoopOnSuppressedErrorFn); + swRecordId.getValue()); ASSERT_EQ(1, keys.size()); { @@ -2953,8 +2943,7 @@ public: &keys, nullptr, nullptr, - id1, - IndexAccessMethod::kNoopOnSuppressedErrorFn); + id1); ASSERT_EQ(keys.size(), 1); int64_t numDeleted; @@ -2989,8 +2978,7 @@ public: &keys, nullptr, &multikeyPaths, - id1, - IndexAccessMethod::kNoopOnSuppressedErrorFn); + id1); ASSERT_EQ(keys.size(), 2); ASSERT_EQ(multikeyPaths.size(), 1); @@ -3182,8 +3170,7 @@ public: &keys, nullptr, &oldMultikeyPaths, - id1, - IndexAccessMethod::kNoopOnSuppressedErrorFn); + id1); ASSERT_EQ(keys.size(), 2); int64_t numDeleted; @@ -3219,8 +3206,7 @@ public: &keys, nullptr, nullptr, - id1, - IndexAccessMethod::kNoopOnSuppressedErrorFn); + id1); ASSERT_EQ(keys.size(), 2); int64_t numInserted; |