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

An lcb_search call that would return an error calls the callback unexpectedly

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.1
    • library
    • None
    • 1
    • SDK32: Eventing Mgmt

    Description

      That segfaults the python client. I've worked around that for now (but it is a hack). The problem is, we don't clear the callback before calling the handle destructor (which will call the callback if it is set). One-liner fix - clear_callback() in search.cc:46

      Attachments

        Issue Links

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

          Activity

            Build couchbase-server-7.1.0-1450 contains libcouchbase commit cf77cb2 with commit message:
            CCBC-1428 Clear callback upon error in lcb_search

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.0-1450 contains libcouchbase commit cf77cb2 with commit message: CCBC-1428 Clear callback upon error in lcb_search

            People

              david.kelly David Kelly
              david.kelly David Kelly
              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