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

indicates creation of a new file More...

#include <durop.h>

Inheritance diagram for mongo::dur::FileCreatedOp:
mongo::dur::DurOp

Detailed Description

indicates creation of a new file

Public Member Functions

 FileCreatedOp (BufReader &log)
 
 FileCreatedOp (const std::string &f, unsigned long long l)
 param f filename to create with path More...
 
virtual void replay ()
 replay the operation (during recovery) 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

RelativePath _p
 
unsigned long long _len
 

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

◆ FileCreatedOp() [1/2]

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

◆ FileCreatedOp() [2/2]

mongo::dur::FileCreatedOp::FileCreatedOp ( const std::string &  f,
unsigned long long  l 
)

param f filename to create with path

Member Function Documentation

◆ _serialize()

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

DurOp will have already written the opcode for you.

Implements mongo::dur::DurOp.

◆ needFilesClosed()

bool mongo::dur::FileCreatedOp::needFilesClosed ( )
virtual

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

Reimplemented from mongo::dur::DurOp.

◆ replay()

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

replay the operation (during recovery) throws

For now, these are not replayed during the normal WRITETODATAFILES phase, since these operations are handled in other parts of the code. At some point this may change.

Implements mongo::dur::DurOp.

◆ toString()

string mongo::dur::FileCreatedOp::toString ( )
virtual

Implements mongo::dur::DurOp.

Member Data Documentation

◆ _len

unsigned long long mongo::dur::FileCreatedOp::_len
private

◆ _p

RelativePath mongo::dur::FileCreatedOp::_p
private

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