This includes finer position specification during replay
and logging read size in hex.
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit
e5b7ba93191ad41c4a4beae802b7e86c8febec04)
}
auto p = t.op_bl.cbegin();
+ auto pos0 = pos;
while (!p.end()) {
+ pos = pos0 + p.get_off();
__u8 op;
decode(op, p);
switch (op) {
buf->pos += r;
}
}
- dout(20) << __func__ << " got " << ret << dendl;
+ dout(20) << __func__ << std::hex
+ << " got 0x" << ret
+ << std::dec << dendl;
--h->file->num_reading;
return ret;
}
buf->pos += r;
}
- dout(20) << __func__ << " got " << ret << dendl;
+ dout(20) << __func__ << std::hex
+ << " got 0x" << ret
+ << std::dec << dendl;
ceph_assert(!outbl || (int)outbl->length() == ret);
--h->file->num_reading;
return ret;