osd: debug user_versions a bit

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-08-30 17:06:30 -07:00
parent 1c5e58a85e
commit 1610768d4a

View File

@ -54,8 +54,8 @@ public:
bool is_onnvram() const { return get_flags() & CEPH_OSD_FLAG_ONNVRAM; }
int get_result() const { return result; }
eversion_t get_replay_version() { return replay_version; }
version_t get_user_version() { return user_version; }
eversion_t get_replay_version() const { return replay_version; }
version_t get_user_version() const { return user_version; }
void set_result(int r) { result = r; }
@ -239,7 +239,9 @@ public:
void print(ostream& out) const {
out << "osd_op_reply(" << get_tid()
<< " " << oid << " " << ops;
<< " " << oid << " " << ops
<< " v" << get_replay_version()
<< " uv" << get_user_version();
if (is_ondisk())
out << " ondisk";
else if (is_onnvram())