mds: add stream dump for LogSegment

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2022-11-03 10:30:53 -04:00
parent 218bdb66d2
commit e4298336b9
No known key found for this signature in database
GPG Key ID: FA47FD0B0367D313

View File

@ -106,4 +106,9 @@ class LogSegment {
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
<< std::dec << " events=" << ls.num_events << ")";
}
#endif