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

When specifying CAS in a lcb_subdoc call that mutates, we don't get a cas mismatch

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.6
    • 3.1.0
    • library
    • None
    • 1

    Description

      For instance, in the txn client code, we do a mutate_in, specifying the wrong cas. I'd expect a LCB_ERR_CAS_MISMATCH, but I see a 305 LCB_ERR_DOCUMENT_EXISTS.

      Attachments

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

        Activity

          Fixed, but will merge to 3.1 line as it affects API

          avsej Sergey Avseyev added a comment - Fixed, but will merge to 3.1 line as it affects API

          Build couchbase-server-7.0.0-4433 contains libcouchbase commit eb32108 with commit message:
          CCBC-1323: use LCB_ERR_DOCUMENT_EXISTS only for insert operation

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-4433 contains libcouchbase commit eb32108 with commit message: CCBC-1323 : use LCB_ERR_DOCUMENT_EXISTS only for insert operation

          People

            avsej Sergey Avseyev
            david.kelly David Kelly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty