lttng: Remove 'ver' from trace in code for CEPH_OSD_OP_NOTIFY

'ver' is obsolete and variable exists only for proper deserialization

Signed-off-by: Adam Crume <adamcrume@gmail.com>
This commit is contained in:
Adam Crume 2014-06-30 07:17:32 -07:00 committed by Sage Weil
parent e1e157fba2
commit 772148e25d
2 changed files with 2 additions and 4 deletions

View File

@ -3705,7 +3705,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
case CEPH_OSD_OP_NOTIFY:
++ctx->num_read;
{
uint32_t ver;
uint32_t ver; // obsolete
uint32_t timeout;
bufferlist bl;
@ -3716,7 +3716,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
} catch (const buffer::error &e) {
timeout = 0;
}
tracepoint(osd, do_osd_op_pre_notify, soid.oid.name.c_str(), soid.snap.val, ver, timeout);
tracepoint(osd, do_osd_op_pre_notify, soid.oid.name.c_str(), soid.snap.val, timeout);
if (!timeout)
timeout = cct->_conf->osd_default_notify_timeout;

View File

@ -303,12 +303,10 @@ TRACEPOINT_EVENT(osd, do_osd_op_pre_notify,
TP_ARGS(
const char*, oid,
uint64_t, snap,
uint64_t, ver,
uint64_t, timeout),
TP_FIELDS(
ctf_string(oid, oid)
ctf_integer(uint64_t, snap, snap)
ctf_integer(uint64_t, ver, ver)
ctf_integer(uint64_t, timeout, timeout)
)
)