CAS is broken
dormando
dormando at rydia.net
Tue Nov 20 07:26:13 UTC 2007
Tomash Brechko wrote:
> Hello,
>
> Unfortunately CAS problems are not over, this time I see that gets
> command doesn't work when more than one key is queried.
>
> You may try the test at the end of this mail. When gets is used with
> one key it works OK (not true as we'll see shortly). But when two or
> more keys are queried, reported CAS value is for the last key, last
> test fails (actually I made the test so, the truth is that flags and
> length are _also_ for the last key :/).
I fixed this with an extensively ugly patch in r646. I didn't commit
your tests with it though; if you think they cover things enough I'll
happily apply.
Thanks for the report! The bug wasn't just in gets for multivalue gets.
Under specific conditions even a single gets could become corrupt.
-Dormando
More information about the memcached
mailing list