#include <durop.h>
Public Member Functions | |
FileCreatedOp (string f, unsigned long long l) | |
FileCreatedOp (BufReader &log) | |
virtual bool | needFilesClosed () |
virtual void | replay () |
virtual string | toString () |
Protected Member Functions | |
virtual void | _serialize (AlignedBuilder &ab) |
Private Attributes | |
unsigned long long | _len |
RelativePath | _p |
indicates creation of a new file
Definition at line 79 of file durop.h.
mongo::dur::FileCreatedOp::FileCreatedOp | ( | BufReader & | log | ) |
mongo::dur::FileCreatedOp::FileCreatedOp | ( | string | f, | |
unsigned long long | l | |||
) |
param f filename to create with path
virtual void mongo::dur::FileCreatedOp::_serialize | ( | AlignedBuilder & | ab | ) | [protected, virtual] |
DurOp will have already written the opcode for you
Implements mongo::dur::DurOp.
virtual 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.
virtual 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.
virtual string mongo::dur::FileCreatedOp::toString | ( | ) | [virtual] |
Implements mongo::dur::DurOp.
unsigned long long mongo::dur::FileCreatedOp::_len [private] |
RelativePath mongo::dur::FileCreatedOp::_p [private] |