diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-10-07 15:24:36 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-07 15:24:36 +0000 |
commit | add5e59c4b2a2e2229f4c08bc42daa060307e123 (patch) | |
tree | dd9b9e99b3c4af9e7b8e5b552cb1a7a398d4d171 /src/mongo/db/catalog/catalog_control.cpp | |
parent | db72f68739de5e01b11ce3b02e0540ef2b2bd601 (diff) | |
download | mongo-add5e59c4b2a2e2229f4c08bc42daa060307e123.tar.gz |
SERVER-43823 Fail background validation if restartCatalog runs while validate locks are yielded
Diffstat (limited to 'src/mongo/db/catalog/catalog_control.cpp')
-rw-r--r-- | src/mongo/db/catalog/catalog_control.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/catalog_control.cpp b/src/mongo/db/catalog/catalog_control.cpp index 0bbdf6b81a0..b7e4dfae103 100644 --- a/src/mongo/db/catalog/catalog_control.cpp +++ b/src/mongo/db/catalog/catalog_control.cpp @@ -189,6 +189,7 @@ void openCatalog(OperationContext* opCtx, const MinVisibleTimestampMap& minVisib // Opening CollectionCatalog: The collection catalog is now in sync with the storage engine // catalog. Clear the pre-closing state. CollectionCatalog::get(opCtx).onOpenCatalog(opCtx); + opCtx->getServiceContext()->incrementCatalogGeneration(); log() << "openCatalog: finished reloading collection catalog"; } } // namespace catalog |