mirror of
https://github.com/ceph/ceph
synced 2025-01-17 00:12:31 +00:00
mds: add stream dump for LogSegment
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
218bdb66d2
commit
e4298336b9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user