This is part of issue 64.
Before, it was returning text protocol, requiring special handling in the binary protocol.
Instead of always binding as autonegotiate, allow the user to specify which protocol the server will run.
enums end up in structs, so they should come first.
Stats settings gives a dump of the overall settings of the server. This is useful for verifying the effect of commandline parameters as well as helping others debug odd behaviors.
316 -> 312
320 -> 316
CAS stats break down into three different types: * CAS misses (non-existent key) * CAS hits (key + CAS ID match) * CAS badval (key + CAS ID mismatch) hits and bad-val are slab-specific stats. Specifically, they are both based on the slab ID of the original item (the one being replaced).
This includes both misses and per-slab hits.
I saw some stuff like "stored = 3" and realized I had no idea what any of these things actually meant.
This should not be used generally, but it assumes all of the keys are null terminated. This change copies all the keys for null-termination (making the process even slower), but is at least somewhat safer.
write_and_go is the next connection state to use, so it should be typed appropriately.
ICC pretends to be GCC as far as autoconf is concerned, but is incompatible in a few ways. ICC C99 mode fails to define u_char, so I made a small change to modify that required c99 to work with ICC's C99 mode off. Nobody wants to put effort into working around compilers that don't speak C99 in the long-term, but a one line change has already revealed quite a few potential bugs.
git-svn-id: http://code.sixapart.com/svn/memcached/branches/binary@755 b0b603af-a30f-0410-a34e-baf09ae79d0b
Function declarations should have parameter names. git-svn-id: http://code.sixapart.com/svn/memcached/branches/binary@754 b0b603af-a30f-0410-a34e-baf09ae79d0b
git-svn-id: http://code.sixapart.com/svn/memcached/branches/binary@752 b0b603af-a30f-0410-a34e-baf09ae79d0b
* commit '366108d785ceccb36bb9d171f53c873cea457c5b': Halve distro size ;) Add -L mode to manpage. Version bump (shipit's having trouble with it), and update ChangeLog per-stat-class tracking of evictions and out of memory conditions. Don't re-calculate the slab class id for slabs_free() either. Don't re-calculate the slab class id. Useless check. 'id' will never be higher than POWER_LARGEST. Give 'SERVER_ERROR out of memory' errors more context. Minor refactoring of server_socket. Conflicts: memcached.c
git-svn-id: http://code.sixapart.com/svn/memcached/branches/binary@733 b0b603af-a30f-0410-a34e-baf09ae79d0b
git-svn-id: http://code.sixapart.com/svn/memcached/branches/binary@732 b0b603af-a30f-0410-a34e-baf09ae79d0b