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

Go to the source code of this file.

Namespaces

 mongo
 Copyright (C) 2014 MongoDB Inc.
 

Functions

Status mongo::emptyCapped (OperationContext *opCtx, const NamespaceString &collectionName)
 Drops all documents contained in the capped collection, "collectionName". More...
 
Status mongo::cloneCollectionAsCapped (OperationContext *opCtx, Database *db, const std::string &shortFrom, const std::string &shortTo, long long size, bool temp)
 Clones the collection "shortFrom" to the capped collection "shortTo" with a size of "size". More...
 
Status mongo::convertToCapped (OperationContext *opCtx, const NamespaceString &collectionName, long long size)
 Converts the collection "collectionName" to a capped collection with a size of "size". More...