summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/drop_collection.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2017-05-26 19:37:41 -0400
committerBenety Goh <benety@mongodb.com>2017-05-30 09:50:08 -0400
commit7c844dbf57eb7bd9a2553ecf7533d1dd9a58e5a9 (patch)
tree2fdb3203b1e69d017f2611a20ecc900d64b5afaf /src/mongo/db/catalog/drop_collection.h
parenteb529e4620292da4095aa535bb57b82fa9f7d139 (diff)
downloadmongo-7c844dbf57eb7bd9a2553ecf7533d1dd9a58e5a9.tar.gz
SERVER-29274 add optional dropOpTime argument to mongo::dropCollection()
Diffstat (limited to 'src/mongo/db/catalog/drop_collection.h')
-rw-r--r--src/mongo/db/catalog/drop_collection.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/drop_collection.h b/src/mongo/db/catalog/drop_collection.h
index f0d51b6b051..81c84d5d8f0 100644
--- a/src/mongo/db/catalog/drop_collection.h
+++ b/src/mongo/db/catalog/drop_collection.h
@@ -33,11 +33,23 @@ class BSONObjBuilder;
class NamespaceString;
class OperationContext;
+namespace repl {
+class OpTime;
+} // namespace repl
+
/**
* Drops the collection "collectionName" and populates "result" with statistics about what
* was removed.
+ *
+ * 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);
+Status dropCollection(OperationContext* opCtx,
+ const NamespaceString& collectionName,
+ BSONObjBuilder& result,
+ const repl::OpTime& dropOpTime);
+
} // namespace mongo