diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-09-14 09:16:11 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-15 18:42:42 +0000 |
commit | a13aa67e179d3400bb8a61a8a995f601d97336be (patch) | |
tree | faf9babb1384c0584201f4cf6db865ffe5998798 /src/mongo/db/startup_recovery.cpp | |
parent | 46a7656f3c4805dc6ffff32573886b00a4e63888 (diff) | |
download | mongo-a13aa67e179d3400bb8a61a8a995f601d97336be.tar.gz |
SERVER-50928 Remove IndexCatalog* stored in IndexBuildBlock
It can go stale when we perform copy-on-write on the Collection.
Pass in current Collection where it is needed.
Diffstat (limited to 'src/mongo/db/startup_recovery.cpp')
-rw-r--r-- | src/mongo/db/startup_recovery.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/startup_recovery.cpp b/src/mongo/db/startup_recovery.cpp index 5817d07bd2c..7c96c3919f3 100644 --- a/src/mongo/db/startup_recovery.cpp +++ b/src/mongo/db/startup_recovery.cpp @@ -183,7 +183,7 @@ Status buildMissingIdIndex(OperationContext* opCtx, Collection* collection) { return status; } - status = indexer.checkConstraints(opCtx); + status = indexer.checkConstraints(opCtx, collection); if (!status.isOK()) { return status; } |