diff options
author | Benety Goh <benety@mongodb.com> | 2017-06-20 14:31:26 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-06-21 14:58:54 -0400 |
commit | 74794ae5c03d75527b9aa0759d6f11de2217c172 (patch) | |
tree | fcd9221b88b5e61dfc53a0eb6e8dbe3b201dfc4a /src/mongo/db/catalog/drop_collection.h | |
parent | 28b670f8eb565c822dfe4d2567b386e17478f3ab (diff) | |
download | mongo-74794ae5c03d75527b9aa0759d6f11de2217c172.tar.gz |
SERVER-29752 support dropping of system collections when applying operations
Diffstat (limited to 'src/mongo/db/catalog/drop_collection.h')
-rw-r--r-- | src/mongo/db/catalog/drop_collection.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mongo/db/catalog/drop_collection.h b/src/mongo/db/catalog/drop_collection.h index 81c84d5d8f0..2703bda5421 100644 --- a/src/mongo/db/catalog/drop_collection.h +++ b/src/mongo/db/catalog/drop_collection.h @@ -44,12 +44,14 @@ class OpTime; * If we are applying an oplog entry for a collection drop on a secondary, 'dropOpTime' is set * to the optime in the oplog entry. */ -Status dropCollection(OperationContext* opCtx, - const NamespaceString& collectionName, - BSONObjBuilder& result); +enum class DropCollectionSystemCollectionMode { + kDisallowSystemCollectionDrops, + kAllowSystemCollectionDrops +}; Status dropCollection(OperationContext* opCtx, const NamespaceString& collectionName, BSONObjBuilder& result, - const repl::OpTime& dropOpTime); + const repl::OpTime& dropOpTime, + DropCollectionSystemCollectionMode systemCollectionMode); } // namespace mongo |