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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • None
    • None
    • Security Level: Public
    • 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.

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            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

                PagerDuty