diff options
author | Yuhong Zhang <yuhong.zhang@mongodb.com> | 2022-08-30 15:06:28 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-30 16:12:41 +0000 |
commit | 8664909531ba0f604f9e7da16c0f14bc144a4dd4 (patch) | |
tree | c6fa67ce4671acd5fa68098f4b518f74f4ba11e0 /src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp | |
parent | 875211fdaeeae66170bab08b1e5090bb77120686 (diff) | |
download | mongo-8664909531ba0f604f9e7da16c0f14bc144a4dd4.tar.gz |
SERVER-69186 Track newly created indexes for background validation again
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp index ad6abdca8a2..65c422d2226 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp @@ -2013,6 +2013,7 @@ void WiredTigerKVEngine::_checkpoint(WT_SESSION* session) { // Third, stableTimestamp >= initialDataTimestamp: Take stable checkpoint. Steady state // case. if (initialDataTimestamp.asULL() <= 1) { + clearIndividuallyCheckpointedIndexes(); invariantWTOK(session->checkpoint(session, "use_timestamp=false"), session); LOGV2_FOR_RECOVERY(5576602, 2, @@ -2034,7 +2035,10 @@ void WiredTigerKVEngine::_checkpoint(WT_SESSION* session) { "stableTimestamp"_attr = stableTimestamp, "oplogNeededForRollback"_attr = toString(oplogNeededForRollback)); - invariantWTOK(session->checkpoint(session, "use_timestamp=true"), session); + { + clearIndividuallyCheckpointedIndexes(); + invariantWTOK(session->checkpoint(session, "use_timestamp=true"), session); + } if (oplogNeededForRollback.isOK()) { // Now that the checkpoint is durable, publish the oplog needed to recover from it. |