[PATCH] 64-bit counter
Evan Miller
emiller at imvu.com
Sat Aug 18 02:11:46 UTC 2007
Per the previous discussion about counter wraparounds, some people
thought that a 64-bit counter could sidestep some of the pain of
adapting client code to deal with a wraparound. It's possible 64-bit
counters could introduce as many problems as they solve; I really don't
know the client libraries well enough to say (let alone everyone's
database schemas, etc.). Regardless, I threw together a patch to support
increments up through 2**64. It is attached.
I'm actually indifferent to whether counters are 32 or 64 bits, but
perhaps someone else can assess the breakage that moving to 64 bits will
wreak. All I know is that wraparound is probably the "correct" behavior,
and I'd like to see one patch or the other integrated. Thoughts?
Evan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memcached-incr-64bit.patch
Type: text/x-patch
Size: 5472 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/memcached/attachments/20070817/46f97783/memcached-incr-64bit-0001.bin
More information about the memcached
mailing list