summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_impl.cpp
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2019-01-22 19:20:26 -0500
committerGeert Bosch <geert@mongodb.com>2019-03-12 12:37:30 -0400
commit6bbe543c31fca48e8966f97eec1540f7c693e7b5 (patch)
treec050dc219770b23540bed9f047c8a54ec6efe81a /src/mongo/db/catalog/collection_impl.cpp
parent83fa6e3879ab93549824fff82cab7030869563d0 (diff)
downloadmongo-6bbe543c31fca48e8966f97eec1540f7c693e7b5.tar.gz
SERVER-40022 Clarify Collection ownership and transition DatabaseImpl to onRollback/onCommit
Diffstat (limited to 'src/mongo/db/catalog/collection_impl.cpp')
-rw-r--r--src/mongo/db/catalog/collection_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/collection_impl.cpp b/src/mongo/db/catalog/collection_impl.cpp
index a11d2461ba1..198e8a6596c 100644
--- a/src/mongo/db/catalog/collection_impl.cpp
+++ b/src/mongo/db/catalog/collection_impl.cpp
@@ -228,7 +228,7 @@ CollectionImpl::CollectionImpl(OperationContext* opCtx,
}
CollectionImpl::~CollectionImpl() {
- verify(ok());
+ invariant(ok());
if (isCapped()) {
_recordStore->setCappedCallback(nullptr);
_cappedNotifier->kill();