Storage Engine API
rename_collection.h File Reference
#include "mongo/base/status.h"
#include "mongo/bson/bsonelement.h"
#include "mongo/bson/bsonobj.h"
#include "mongo/db/catalog/collection_options.h"
#include "mongo/util/uuid.h"

Go to the source code of this file.

Classes

struct  mongo::RenameCollectionOptions
 Renames the collection from "source" to "target" and drops the existing collection with UUID dropTargetUUID iff "dropTarget" is true. More...
 

Namespaces

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

Functions

Status mongo::renameCollection (OperationContext *opCtx, const NamespaceString &source, const NamespaceString &target, const RenameCollectionOptions &options)
 
Status mongo::renameCollectionForApplyOps (OperationContext *opCtx, const std::string &dbName, const BSONElement &ui, const BSONObj &cmd, const repl::OpTime &renameOpTime)
 As above, but may only be called from applyCommand_inlock. More...
 
Status mongo::renameCollectionForRollback (OperationContext *opCtx, const NamespaceString &target, const UUID &uuid)
 Same as renameCollection(), but used for rolling back renameCollection operations only. More...