![]() |
Storage Engine API
|
indicates creation of a new file More...
#include <durop.h>
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... | |
![]() | |
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 std::shared_ptr< DurOp > | read (unsigned opcode, BufReader &br) |
read a durop from journal file referenced by br. More... | |
mongo::dur::FileCreatedOp::FileCreatedOp | ( | BufReader & | log | ) |
mongo::dur::FileCreatedOp::FileCreatedOp | ( | const std::string & | f, |
unsigned long long | l | ||
) |
param f filename to create with path
|
protectedvirtual |
DurOp will have already written the opcode for you.
Implements mongo::dur::DurOp.
|
virtual |
if the op requires all file to be closed before doing its work, returns true.
Reimplemented from mongo::dur::DurOp.
|
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.
|
virtual |
Implements mongo::dur::DurOp.
|
private |
|
private |