Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit
5639fa298dcbb8c02f8b413ad5f734f63d2ac7be)
Conflicts:
src/mds/LogSegment.h
src/mds/LogSegment.h does not overload "<<" operator, but the log
dump is beneficial, so copy out the overload.
MDSContext::vec expiry_waiters;
};
+static inline std::ostream& operator<<(std::ostream& out, const LogSegment& ls) {
+ return out << "LogSegment(" << ls.seq << "/0x" << std::hex << ls.offset
+ << "~" << ls.end << std::dec << " events=" << ls.num_events << ")";
+}
+
#endif