summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/database_holder_impl.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2018-12-12 14:21:18 -0500
committerDavid Storch <david.storch@10gen.com>2018-12-18 11:49:20 -0500
commit0c83f08e77642cdf2c303edc05c42059179a48c7 (patch)
tree3639f678851f5ecabde4b16e7cd51725674162bf /src/mongo/db/catalog/database_holder_impl.cpp
parentfc2b0e1525f0bef7ccdea22e5ed3afa43e6693ac (diff)
downloadmongo-0c83f08e77642cdf2c303edc05c42059179a48c7.tar.gz
SERVER-37449 Make yield recovery throw if Database has been closed and reopened.
Diffstat (limited to 'src/mongo/db/catalog/database_holder_impl.cpp')
-rw-r--r--src/mongo/db/catalog/database_holder_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/database_holder_impl.cpp b/src/mongo/db/catalog/database_holder_impl.cpp
index 7d772b5dde0..7573ca753ab 100644
--- a/src/mongo/db/catalog/database_holder_impl.cpp
+++ b/src/mongo/db/catalog/database_holder_impl.cpp
@@ -170,7 +170,7 @@ Database* DatabaseHolderImpl::openDb(OperationContext* opCtx, StringData ns, boo
*justCreated = true;
}
- auto newDb = stdx::make_unique<Database>(opCtx, dbname, entry);
+ auto newDb = stdx::make_unique<Database>(opCtx, dbname, entry, ++_epoch);
// Finally replace our nullptr entry with the new Database pointer.
removeDbGuard.Dismiss();