summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/catalog_control.cpp
diff options
context:
space:
mode:
authorEric Milkie <milkie@mongodb.com>2020-01-06 21:03:09 +0000
committerevergreen <evergreen@mongodb.com>2020-01-06 21:03:09 +0000
commit12d44ec1d9a03ed3d0828096bb32de925235c447 (patch)
treeec1a26abad1e82be3ffb59354f5ef0e450e70fc8 /src/mongo/db/catalog/catalog_control.cpp
parent29c8868b7c1c79ca49341ee68d9e517a5c88f38f (diff)
downloadmongo-12d44ec1d9a03ed3d0828096bb32de925235c447.tar.gz
SERVER-44904 startup recovery should not delete corrupt docs while rebuilding unfinished indexes
Diffstat (limited to 'src/mongo/db/catalog/catalog_control.cpp')
-rw-r--r--src/mongo/db/catalog/catalog_control.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/catalog_control.cpp b/src/mongo/db/catalog/catalog_control.cpp
index 351d709b5d0..3ba439ae0b2 100644
--- a/src/mongo/db/catalog/catalog_control.cpp
+++ b/src/mongo/db/catalog/catalog_control.cpp
@@ -154,7 +154,7 @@ void openCatalog(OperationContext* opCtx, const MinVisibleTimestampMap& minVisib
}
std::vector<BSONObj> indexSpecs = entry.second.second;
- fassert(40690, rebuildIndexesOnCollection(opCtx, collection, indexSpecs));
+ fassert(40690, rebuildIndexesOnCollection(opCtx, collection, indexSpecs, RepairData::kNo));
}
// Once all unfinished index builds have been dropped and the catalog has been reloaded, restart