Storage Engine API
drop_collection.h File Reference
#include "mongo/base/status.h"

Go to the source code of this file.

Namespaces

 mongo
 Copyright (C) 2014 MongoDB Inc.
 
 mongo::repl
 

Enumerations

enum  mongo::DropCollectionSystemCollectionMode { mongo::DropCollectionSystemCollectionMode::kDisallowSystemCollectionDrops, mongo::DropCollectionSystemCollectionMode::kAllowSystemCollectionDrops }
 Drops the collection "collectionName" and populates "result" with statistics about what was removed. More...
 

Functions

Status mongo::dropCollection (OperationContext *opCtx, const NamespaceString &collectionName, BSONObjBuilder &result, const repl::OpTime &dropOpTime, DropCollectionSystemCollectionMode systemCollectionMode)