Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-829

Collection.get_and_lock should not get and lock in 2 commands

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-beta.3
    • 3.0.0-rc
    • None
    • None
    • 1

    Description

      Seems it currently was implemented to make 2 calls, rather than one. But most if not all we need for one call seems to exist in the bindings. Lets add a get_and_touch (note there is a PYCBC_CMD_GAT which fits the bill, we probably just need to add a function that maps to it, and the be sure it actually works).

      The current work that touches on get_and_lock (along with others) – PYCBC-818 – should be done first. We could do this right after, or depending on other priorities it could be done later.

      Attachments

        For Gerrit Dashboard: PYCBC-829
        # Subject Branch Project Status CR V

        Activity

          david.kelly David Kelly added a comment -

          The _Base.lock actually does this correctly – the collection code just mistakenly called get first. Simple enough fix.

          david.kelly David Kelly added a comment - The _Base.lock actually does this correctly – the collection code just mistakenly called get first. Simple enough fix.

          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