summaryrefslogtreecommitdiffstats
path: root/src/osdc
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2015-11-12 22:33:04 +0100
committerSage Weil <sage@redhat.com>2017-05-05 20:05:24 +0200
commitffdfe6996fa10750124583fbc6217c7bb4f01bb0 (patch)
treead80e46e04950e22b72c8d67e38dfe3aec51a050 /src/osdc
parentblkin: add traces to librados and Objecter (diff)
downloadceph-ffdfe6996fa10750124583fbc6217c7bb4f01bb0.tar.xz
ceph-ffdfe6996fa10750124583fbc6217c7bb4f01bb0.zip
blkin: add config variable osdc_blkin_trace_all
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/osdc')
-rw-r--r--src/osdc/Objecter.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc
index bdb189ab5e6..e0b67888da1 100644
--- a/src/osdc/Objecter.cc
+++ b/src/osdc/Objecter.cc
@@ -3091,6 +3091,8 @@ MOSDOp *Objecter::_prepare_osd_op(Op *op)
m->set_mtime(op->mtime);
m->set_retry_attempt(op->attempts++);
m->trace = op->trace;
+ if (!m->trace && cct->_conf->osdc_blkin_trace_all)
+ m->trace.init("objecter op", &trace_endpoint);
if (op->priority)
m->set_priority(op->priority);