Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1485

lcb_cntl LCB_CNTL_ENABLE_TRACING not disabling tracing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.2.2
    • 3.2.0
    • library
    • None
    • 1

    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)

      { settings->tracer = 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            avsej Sergey Avseyev
            jo JC
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty