Closed lenary closed 10 years ago
How do I test this? Please provide the steps that provoke the bug this fixes, so I can verify. Also, a test that shows the bug and the fix would be very valuable (be it a riak_test, or a local unit test)
I don't think this is entirely correct: IIRC from looking at this code yesterday the Erlang specs indicate positive integers only, so that will have to be tweaked (although buildbot didn't gripe about Dialyzer).
I also suspected this should be handled one layer higher in the stack, but haven't looked to see where that would be.
Testing should be easy: fire up the Erlang client and send a single decrement. That should crash a node IIRC.
Will look more in a bit.
Thanks @lenary, really appreciate you getting this started.
@russelldb there's a new eunit test in 9109d7e
Thanks @lenary this all works fine now
+1 9109d7e
I assume we need to fix the specs before merging
@borshop merge
Apparently a boog in emcounter. Fixed, so server-side should have no errors with any integers and any of
increment
anddecrement
.