Storage Engine API
mongo::dur::DropDbOp Class Reference

record drop of a database More...

#include <durop.h>

Inheritance diagram for mongo::dur::DropDbOp:
mongo::dur::DurOp

Detailed Description

record drop of a database

Public Member Functions

 DropDbOp (BufReader &log)
 
 DropDbOp (const std::string &db)
 
virtual void replay ()
 throws More...
 
virtual std::string toString ()
 
virtual bool needFilesClosed ()
 if the op requires all file to be closed before doing its work, returns true. More...
 
- Public Member Functions inherited from mongo::dur::DurOp
 DurOp (unsigned opcode)
 
virtual ~DurOp ()
 
void serialize (AlignedBuilder &ab)
 serialize the op out to a builder which will then be written (presumably) to the journal More...
 

Protected Member Functions

virtual void _serialize (AlignedBuilder &ab)
 DurOp will have already written the opcode for you. More...
 

Private Attributes

std::string _db
 

Additional Inherited Members

- Static Public Member Functions inherited from mongo::dur::DurOp
static std::shared_ptr< DurOpread (unsigned opcode, BufReader &br)
 read a durop from journal file referenced by br. More...
 

Constructor & Destructor Documentation

◆ DropDbOp() [1/2]

mongo::dur::DropDbOp::DropDbOp ( BufReader &  log)

◆ DropDbOp() [2/2]

mongo::dur::DropDbOp::DropDbOp ( const std::string &  db)
inline

Member Function Documentation

◆ _serialize()

void mongo::dur::DropDbOp::_serialize ( AlignedBuilder ab)
protectedvirtual

DurOp will have already written the opcode for you.

Implements mongo::dur::DurOp.

◆ needFilesClosed()

virtual bool mongo::dur::DropDbOp::needFilesClosed ( )
inlinevirtual

if the op requires all file to be closed before doing its work, returns true.

Reimplemented from mongo::dur::DurOp.

◆ replay()

void mongo::dur::DropDbOp::replay ( )
virtual

throws

Implements mongo::dur::DurOp.

◆ toString()

virtual std::string mongo::dur::DropDbOp::toString ( )
inlinevirtual

Implements mongo::dur::DurOp.

Member Data Documentation

◆ _db

std::string mongo::dur::DropDbOp::_db
private

The documentation for this class was generated from the following files: