diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-09-30 19:35:59 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-30 19:35:59 +0000 |
commit | 25b63d9ff12ebdfde549288ebaa7ff27c6945dd7 (patch) | |
tree | b9a8a8dd4cf8f9ea5521baa52004439147f98dfa /src/mongo/db/catalog | |
parent | daba0f131ab2b7cc2c7217f924985d863cd8fe21 (diff) | |
download | mongo-25b63d9ff12ebdfde549288ebaa7ff27c6945dd7.tar.gz |
SERVER-43707 CollectionLock destroyed immediately after creation in DatabaseImpl::dropCollectionEvenIfSystem()
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r-- | src/mongo/db/catalog/database_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/database_impl.cpp b/src/mongo/db/catalog/database_impl.cpp index cf4aa3bf9db..0a6e862e4ad 100644 --- a/src/mongo/db/catalog/database_impl.cpp +++ b/src/mongo/db/catalog/database_impl.cpp @@ -430,7 +430,7 @@ Status DatabaseImpl::dropCollectionEvenIfSystem(OperationContext* opCtx, << ") - renaming to drop-pending collection: " << dpns << " with drop optime " << dropOpTime; { - Lock::CollectionLock(opCtx, dpns, MODE_X); + Lock::CollectionLock collLk(opCtx, dpns, MODE_X); fassert(40464, renameCollection(opCtx, nss, dpns, stayTemp)); } |