Couchbase requires each item operation to have a vbucket index set in the request's "reserved" field. (This is used for replicatiom and failover.) This op factory provides customized operations handling these indexes.
Inheritance: ICouchbaseOperationFactory
Beispiel #1
0
        protected override IOperationResult ProcessResponse(BinaryResponse response)
        {
            var r      = response.StatusCode == 0;
            var result = new BinaryOperationResult();

            if (this.locator != null &&
                !VBucketAwareOperationFactory.GuessResponseState(response, out this.state))
            {
                return(result.Fail("Process response failed"));
            }

            return(result.PassOrFail(r, "Processing response failed"));
        }
Beispiel #2
0
        protected override IOperationResult ProcessResponse(BinaryResponse response)
        {
            var r      = base.ProcessResponse(response);
            var result = new BinaryOperationResult();

            if (this.locator != null &&
                !VBucketAwareOperationFactory.GuessResponseState(response, out this.state))
            {
                return(result.Fail("Failed to process response"));
            }

            return(r);
        }