Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
Description
When passing in a seed value of 1 to .Decrement, my document counter would increase by 1.
Recommendation is to switch data type to an unsigned integer (not allowing for negatives to be passed in) and allow .Increment to increase the counter and .Decrement to decrease the counter by specified amount.
Alternatively, update documentation to suggest that a negative value is required.
Reporter: Alex Frye
E-mail: alex.frye@absg.com
Attachments
For Gerrit Dashboard: NCBC-3270 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
180572,11 | NCBC-3270: Make Increment and Decrement take unsigned long delta per the RFC | master | couchbase-net-client | Status: MERGED | +2 | +1 |
180624,1 | NCBC-3270: .Decrement works like .Increment -- must pass negative seed increment | master | couchbase-net-client | Status: ABANDONED | 0 | +1 |