ENCODE_FINISH(bl);
}
- virtual void print(ostream& out) {
+ virtual void print(ostream& out) const {
out << "event(" << _type << ")";
}
ECommitted(metareqid_t r) :
LogEvent(EVENT_COMMITTED), reqid(r) { }
- void print(ostream& out) {
+ void print(ostream& out) const {
out << "ECommitted " << reqid;
}
set<dirfrag_t> &get_bounds() { return bounds; }
- void print(ostream& out) {
+ void print(ostream& out) const {
out << "EExport " << base << " " << metablob;
}
EFragment(MDLog *mdlog, int o, inodeno_t i, frag_t bf, int b) :
LogEvent(EVENT_FRAGMENT), metablob(mdlog),
op(o), ino(i), basefrag(bf), bits(b) { }
- void print(ostream& out) {
+
+ void print(ostream& out) const {
out << "EFragment " << op_name(op) << " " << ino << " " << basefrag << " by " << bits << " " << metablob;
}
EOpen(MDLog *mdlog) :
LogEvent(EVENT_OPEN), metablob(mdlog) { }
- void print(ostream& out) {
+ void print(ostream& out) const {
out << "EOpen " << metablob << ", " << inos.size() << " open files";
}
void decode(bufferlist::iterator& bl);
void dump(Formatter *f) const;
static void generate_test_instances(list<EResetJournal*>& ls);
- void print(ostream& out) {
+ void print(ostream& out) const {
out << "EResetJournal";
}
void dump(Formatter *f) const;
static void generate_test_instances(list<ESession*>& ls);
- void print(ostream& out) {
+ void print(ostream& out) const {
if (open)
out << "ESession " << client_inst << " open cmapv " << cmapv;
else
void dump(Formatter *f) const;
static void generate_test_instances(list<ESessions*>& ls);
- void print(ostream& out) {
+ void print(ostream& out) const {
out << "ESessions " << client_map.size() << " opens cmapv " << cmapv;
}
master(mastermds),
op(o), origop(oo) { }
- void print(ostream& out) {
+ void print(ostream& out) const {
if (type.length())
out << type << " ";
out << " " << (int)op;
ESubtreeMap() : LogEvent(EVENT_SUBTREEMAP), expire_pos(0) { }
- void print(ostream& out) {
+ void print(ostream& out) const {
out << "ESubtreeMap " << subtrees.size() << " subtrees "
<< ", " << ambiguous_subtrees.size() << " ambiguous "
<< metablob;
void dump(Formatter *f) const;
static void generate_test_instances(list<ETableClient*>& ls);
- void print(ostream& out) {
+ void print(ostream& out) const {
out << "ETableClient " << get_mdstable_name(table) << " " << get_mdstableserver_opname(op);
if (tid) out << " tid " << tid;
}
void dump(Formatter *f) const;
static void generate_test_instances(list<ETableServer*>& ls);
- void print(ostream& out) {
+ void print(ostream& out) const {
out << "ETableServer " << get_mdstable_name(table)
<< " " << get_mdstableserver_opname(op);
if (reqid) out << " reqid " << reqid;
LogEvent(EVENT_UPDATE), metablob(mdlog),
type(s), cmapv(0), had_slaves(false) { }
- void print(ostream& out) {
+ void print(ostream& out) const {
if (type.length())
out << "EUpdate " << type << " ";
out << metablob;