riaken / riaken-core

Go Protocol Buffer driver for the Riak distributed database
Other
31 stars 7 forks source link

Counter incrementing and decrementing #9

Closed joaonrb closed 8 years ago

joaonrb commented 9 years ago

If I do a 2 increments or decrements in a CrdtCounter the second value is going to override the first increment instead of accumulate. Is there any special reason for this?

This is being a major headache for my project making me wrapping a huge structure over wrappers just to avoid one commit for each change in counter.

boj commented 9 years ago

@joaonrb Just an oversight. Be happy to take a patch which corrects the behaviour.