Comment #2 on issue 220 by [email protected]: Binary Increment returns old cas http://code.google.com/p/memcached/issues/detail?id=220
I've tried it under 1.4.7 and it still fails. From lines 2903 to 2906 in memcached.c is where the the problem is. I think somewhere after line 2903, you need this block of code:
if (cas) {
*cas = ITEM_get_cas(new_it);
}
