Prep for a 1.2.4 release candidate

Paul Lindner lindner at
Wed Oct 3 23:17:55 UTC 2007

On Wed, Oct 03, 2007 at 03:41:19PM -0700, Dustin Sallings wrote:
> On Oct 3, 2007, at 15:29 , Paul Lindner wrote:
> >        * Switch to unsigned 64-bit increment/decrement counters
> >          from Evan Miller and Dusgtin Sallings.
> 	Too many g's.  :)


> >I spent some time adding a few tests and documenting the CAS and
> >append commands in protocol.txt
> 	I've been really bad at updating protocol docs as I was working on  
> the binary protocol.  Primarily because I don't know how the  
> information should look in the text file.

No problem at all.  I'm happy to see all the work you've put into
this.  It will be great to get this code out to the masses.

> 	There is also some existing functionality I can't find any  
> documentation on at all.  I haven't put a lot of effort into  
> understanding how it works, or what it's supposed to do.  That's  
> basically true for all of the functionality around ``managed mode.''

Here's something from the 1.1.13 announcement:

    -- start of "vbuckets" project.  instead of clients hashing
       a key onto a memcached instance, they map onto one of
       16k or so virtual bucket numbers, each bucket of which
       is owned by an instance and w/ a particular generation number.
       no client or tracker exists yet, but low-level stuff is there.

Poring over the code it appears that you execute:

 own 1:1  (Bucket 1, generation 1)

This marks this bucket/generation as 'owned'.  Another instance can't
claim this.

then you prefix each command with your bg value.

  bg 1:1
  get foo

  bg 1:1
  add foo 0 0 6

I don't think this code is fully fleshed out.  It appears that you
could have two separate instances updating different key spaces.

However in my tests it appears that this did not work as you would

Paul Lindner        ||||| | | | |  |  |  |   |   |
lindner at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the memcached mailing list