diff options
author | Dianna Hohensee <dianna.hohensee@mongodb.com> | 2020-05-07 15:17:35 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-12 02:53:39 +0000 |
commit | 3de4762514cee3507f77efd7b46b20c4362c041a (patch) | |
tree | 36f13877f42be887f124de6c4c4e305a654657e0 /src/mongo/db/catalog/database.h | |
parent | ab9233d37298a13752ebed493c2c2f973b087adf (diff) | |
download | mongo-3de4762514cee3507f77efd7b46b20c4362c041a.tar.gz |
SERVER-47872 Move the Database class' epoch into the CollectionCatalog
Diffstat (limited to 'src/mongo/db/catalog/database.h')
-rw-r--r-- | src/mongo/db/catalog/database.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mongo/db/catalog/database.h b/src/mongo/db/catalog/database.h index f0ae23db785..bf8c12638d2 100644 --- a/src/mongo/db/catalog/database.h +++ b/src/mongo/db/catalog/database.h @@ -172,19 +172,6 @@ public: * DropPendingCollectionReaper to clean up eventually. */ virtual void checkForIdIndexesAndDropPendingCollections(OperationContext* opCtx) const = 0; - - /** - * A database is assigned a new epoch whenever it is closed and re-opened. This involves - * deleting and reallocating a new Database object, so the epoch for a particular Database - * instance is immutable. - * - * Callers of this method must hold the global lock in at least MODE_IS. - * - * This allows callers which drop and reacquire locks to detect an intervening database close. - * For example, closing a database must kill all active queries against the database. This is - * implemented by checking that the epoch has not changed during query yield recovery. - */ - virtual uint64_t epoch() const = 0; }; } // namespace mongo |