os/Transaction: dump alloc hint flags in op

Signed-off-by: Zengran Zhang <zhangzengran@sangfor.com.cn>
This commit is contained in:
Zengran Zhang 2019-07-04 21:55:15 +08:00
parent e9900a11ec
commit 12289f1a49

View File

@ -493,11 +493,13 @@ void Transaction::dump(ceph::Formatter *f)
ghobject_t oid = i.get_oid(op->oid);
uint64_t expected_object_size = op->expected_object_size;
uint64_t expected_write_size = op->expected_write_size;
uint32_t alloc_hint_flags = op->alloc_hint_flags;
f->dump_string("op_name", "op_setallochint");
f->dump_stream("collection") << cid;
f->dump_stream("oid") << oid;
f->dump_stream("expected_object_size") << expected_object_size;
f->dump_stream("expected_write_size") << expected_write_size;
f->dump_string("alloc_hint_flags", ceph_osd_alloc_hint_flag_string(alloc_hint_flags));
}
break;