Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-40

It isn't possible to receive result of the STORE part when doing Bucket#cas asynchronously

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public
    • Labels:
      None

      Description

      The callback of the Bucket#cas method is triggered only once, when it fetches old value, and it isn't possible to receive notification if the next store operation was successful:

      Couchbase.bucket.run do |c|
      c.cas("foo") do |oldval|

      1. modify oldval and return newval
        newval
        end
        end

      It would be better if cas operation will be more like other operations in async mode and will return Result object twice, first for get part and then for set.

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+RCBC-40=message:RCBC-40

        Activity

        Hide
        avsej Sergey Avseyev added a comment -
        Show
        avsej Sergey Avseyev added a comment - http://review.couchbase.org/17541 uploaded fix

          People

          • Assignee:
            avsej Sergey Avseyev
            Reporter:
            avsej Sergey Avseyev
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes