Description
From debugging session I found following behaviour.
lcb_create creates a tracer per code in tracing.cc.
if (settings->use_tracing) {
if (options && options->tracer)
else
{ settings->tracer = lcbtrace_new(obj, LCBTRACE_F_THRESHOLD); }}
Given settings->use_tracing seems to always be 1 this is always executed.
subsequent lcb_cntl call setting LCB_CNTL_ENABLE_TRACING to 0 just sets settings->use_tracing to 0 but does not touch settings->tracer which is tested for calling tracing code.
Attachments
For Gerrit Dashboard: CCBC-1485 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
161753,2 | CCBC-1485: allow to disable tracer for connected instance | master | libcouchbase | Status: MERGED | +2 | +1 |