36 #include "mongo/util/bufreader.h" 66 static std::shared_ptr<DurOp>
read(
unsigned opcode, BufReader& br);
116 return std::string(
"DropDbOp ") +
_db;
virtual void _serialize(AlignedBuilder &ab)=0
DurOp will have already written the opcode for you.
DropDbOp(BufReader &log)
Definition: durop.cpp:82
unsigned long long _len
Definition: durop.h:106
an individual write operation within a group commit section.
Definition: dur_journalformat.h:119
virtual void replay()
throws
Definition: durop.cpp:99
Copyright (C) 2014 MongoDB Inc.
Definition: bson_collection_catalog_entry.cpp:38
virtual bool needFilesClosed()
if the op requires all file to be closed before doing its work, returns true.
Definition: durop.h:79
DurOp(unsigned opcode)
Definition: durop.h:56
virtual std::string toString()
Definition: durop.cpp:127
std::string _db
Definition: durop.h:126
virtual void replay()=0
replay the operation (during recovery) throws
DropDbOp(const std::string &db)
Definition: durop.h:113
virtual void replay()
replay the operation (during recovery) throws
Definition: durop.cpp:137
virtual ~DurOp()
Definition: durop.h:58
DurOp - Operations we journal that aren't just basic writes.
Definition: durop.h:52
const unsigned _opcode
Definition: durop.h:88
a page-aligned BufBuilder.
Definition: aligned_builder.h:37
FileCreatedOp(BufReader &log)
Definition: durop.cpp:110
record drop of a database
Definition: durop.h:110
virtual std::string toString()
Definition: durop.h:115
static std::shared_ptr< DurOp > read(unsigned opcode, BufReader &br)
read a durop from journal file referenced by br.
Definition: durop.cpp:60
virtual std::string toString()=0
OperationContext Database * db
Definition: database_impl.cpp:949
virtual void _serialize(AlignedBuilder &ab)
DurOp will have already written the opcode for you.
Definition: durop.cpp:91
virtual bool needFilesClosed()
if the op requires all file to be closed before doing its work, returns true.
Definition: durop.cpp:133
virtual bool needFilesClosed()
if the op requires all file to be closed before doing its work, returns true.
Definition: durop.h:118
virtual void _serialize(AlignedBuilder &ab)
DurOp will have already written the opcode for you.
Definition: durop.cpp:120
indicates creation of a new file
Definition: durop.h:92
RelativePath _p
Definition: durop.h:105
void serialize(AlignedBuilder &ab)
serialize the op out to a builder which will then be written (presumably) to the journal
Definition: durop.cpp:77
this is very much like a boost::path.
Definition: paths.h:49