diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2019-03-21 17:00:09 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2019-03-24 17:11:54 -0400 |
commit | 85126f13b5b26700cb9dc869df3ad747515e6a25 (patch) | |
tree | ce150ada40a6a52f712fd4681aac2c35ffb69427 /src/mongo/db/catalog/database_impl.h | |
parent | 10f196bb962c6d4f983b9d7b1209aff26f97573a (diff) | |
download | mongo-85126f13b5b26700cb9dc869df3ad747515e6a25.tar.gz |
SERVER-39079 Move BackgroundOperation checks out of the catalog layer; add parallel IndexBuildsCoordinator checks for all BackgroundOperation checks
Diffstat (limited to 'src/mongo/db/catalog/database_impl.h')
-rw-r--r-- | src/mongo/db/catalog/database_impl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/database_impl.h b/src/mongo/db/catalog/database_impl.h index 3503bc880d8..d2b5d228708 100644 --- a/src/mongo/db/catalog/database_impl.h +++ b/src/mongo/db/catalog/database_impl.h @@ -80,6 +80,9 @@ public: * * If we are applying a 'drop' oplog entry on a secondary, 'dropOpTime' will contain the optime * of the oplog entry. + * + * The caller should hold a DB X lock and ensure there are no index builds in progress on the + * collection. */ Status dropCollection(OperationContext* opCtx, StringData fullns, @@ -119,6 +122,9 @@ public: * Renames the fully qualified namespace 'fromNS' to the fully qualified namespace 'toNS'. * Illegal to call unless both 'fromNS' and 'toNS' are within this database. Returns an error if * 'toNS' already exists or 'fromNS' does not exist. + * + * The caller should hold a DB X lock and ensure there are no index builds in progress on either + * the 'fromNS' or the 'toNS'. */ Status renameCollection(OperationContext* opCtx, StringData fromNS, |