summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update manpage for -Fpendingdormando2013-12-201-0/+4
|
* fix potential unbounded key printsdormando2013-12-202-4/+14
| | | | | item key isn't necessarily null terminated. user submitted a patch for one, this clears two more.
* Fix buffer-overrun when logging key to delete in binary protocol.Jeremy Sowden2013-12-201-1/+6
|
* explicitly record sasl auth states伊藤洋也2013-12-203-8/+41
| | | | | | | | | | It was previously possible to bypass authentication due to implicit state management. Now we explicitly consider ourselves unauthenticated on any new connections and authentication attempts. bug316 Signed-off-by: Dustin Sallings <dustin@spy.net>
* Removed redundant hash computation.Tomas Kalibera2013-12-201-1/+1
|
* Fix udp mode when listening on ipv6 addresses.Alex Leone2013-12-202-2/+3
| | | | | | Previously the memcached could not respond to ipv6 udp packets correctly, since the client's address was stored in a struct sockaddr (16 bytes on linux) instead of a struct sockaddr_in6 (28 bytes).
* Text protocol description grammar fixAdam Szkoda2013-12-201-1/+1
|
* Fix for incorrect length of initial value set via binary increment protocol.theblop2013-12-202-4/+17
|
* add tests for -F optiondormando2013-12-191-1/+14
|
* Added parameter to disable flush_all (nice to have on production)Daniel Pañeda2013-12-193-1/+22
|
* Implement settings and sizes stats. Show information about empty slabs.Andrey Niakhaichyk2013-12-191-1/+55
|
* reduce the ifdef soup a littledormando2013-12-191-11/+4
| | | | this does leave an extra branch in.
* Add linux accept4() support.Simon Liu2013-12-192-7/+35
|
* Created DETECT_CLANG autoconf function, and excluded '-pthread' from CFLAGS ↵1.4.16Eric McConville2013-12-091-2/+34
| | | | when GCC is clang
* Added support for automake 1.13 & 1.14Eric McConville2013-12-091-2/+2
|
* fix for "variable length array folded to constant array as an extension" errorWing Lian2013-12-091-1/+1
|
* Fix tests again..dormando2013-12-082-2/+2
|
* Add statistics for allocation failuresTrond Norbye2013-12-083-12/+60
| | | | | | | | This patch adds a new stat "malloc_fails" that is a counter of how many times malloc/realloc/calloc returned NULL when we _needed_ it to return something else (resulting in closing the connection or something like that). Conditions where we could live without malloc returning a new chunk of memory is not tracked with this counter.
* Issue 294: Check for allocation failureTrond Norbye2013-12-081-0/+7
|
* Issue 293: Remove unused condition variableTrond Norbye2013-12-081-3/+0
|
* Some tail_repair_time adjustmentsdormando2013-12-083-2/+6
| | | | | | | fix t/binary.t test. Default of 3 hours is super overkill. 1 hour is still way too much but within realm of reason. Bail if someone sets it really low (10s or negative)
* Make tail leak expiry time configurableKeyur2013-12-083-3/+18
|
* Fix segfault on specially crafted packet.Huzaifa Sidhpurwala2013-12-082-0/+30
|
* Create memcached pid file atomically using rename.Kenneth Steele2013-12-081-3/+16
| | | | | | | | This change avoids a race condition where another application (e.g., testapp) can read the memcached pid file after memcached opens it, but before memcached writes the pid. It now writes the pid into a temporary file and then renames that file to the correct pid file name. This way the pid file can not exist without containing the correct value.
* Close connection on update_event error for new cmddormando2013-12-081-0/+1
| | | | | | | | | Issue 261. If an update_event fails for case conn_new_cmd but no more events happen on this socket, conn_closing will never be processed. Not sure if it's possible for this to happen, but it could theoretically leak refcounts.
* Don't truncate maxbytes stat from 'stats settings'dormando2013-12-071-1/+1
| | | | Fixes issue 319
* add aclocal 1.12 in autogen.shliu bo2013-01-131-1/+1
|
* Fix make maintainer-cleanBrian Aker2012-12-031-0/+13
|
* Merge pull request #26 from trondn/brians-shutdownTrond Norbye2012-10-173-1/+44
|\ | | | | This adds the "shutdown" command to the server. This allows for better
| * This adds the "shutdown" command to the server. This allows for betterBrian Aker2012-10-173-1/+44
| | | | | | | | automation (at least,... I find that it makes for better automation).
* | Merge pull request #22 from gabriel-samfira/masterTrond Norbye2012-10-171-1/+1
|\ \ | |/ |/| Compile fails using enable-sasl-pwdb
| * fix enable-sasl-pwdbGabriel A. Samfira2012-09-181-1/+1
|/ | | | | | * using --enable-sasl-pwdb will make the compile fail with: sasl_defs.c:148:4: error: initialization from incompatible pointer type [-Werror]
* Add some mild thread documentation1.4.15dormando2012-09-031-0/+46
| | | | since reading the code is probably incredibly confusing now.
* don't wait on condition without holding the lockdormando2012-09-031-1/+2
| | | | freebsd9 is the only platform that apparently cares about this.
* README.md was missing from dist tarballdormando2012-09-031-1/+1
|
* remove global stats lock from item allocationdormando2012-09-036-18/+29
| | | | | | | | | | This doesn't reduce mutex contention much, if at all, for the global stats lock, but it does remove a handful of instructions from the alloc hot path, which is always worth doing. Previous commits possibly added a handful of instructions for the loop and for the bucket readlock trylock, but this is still faster than .14 for writes overall.
* item locks now lock hash table bucketsdormando2012-09-037-31/+178
| | | | | | | | | | expansion requires switching to a global lock temporarily, so all buckets have a covered read lock. slab rebalancer is paused during hash table expansion. internal item "trylocks" are always issued, and tracked as the hash power variable can change out from under it.
* alloc loop now attempts an item_lockdormando2012-09-036-84/+111
| | | | | | | | | | | | | | | | Fixes a few issues with a restructuring... I think -M was broken before, should be fixed now. It had a refcount leak. Now walks up to five items from the bottom in case of the bottomost items being item_locked, or refcount locked. Helps avoid excessive OOM errors for some oddball cases. Those happen more often if you're hammering on a handful of pages in a very large class size (100k+) The hash item lock ensures that if we're holding that lock, no other thread can be incrementing the refcount lock at that time. It will mean more in future patches. slab rebalancer gets a similar update.
* Issue 286: --disable-coverage drops "-pthread" optionTrond Norbye2012-09-011-5/+3
| | | | -pthread was added as part of setting up the gcov options
* call mutex_unlock() when we use mutex_lock()1.4.14dormando2012-07-304-19/+19
| | | | | use both #define's when using the spinlock version of our locks. not all locks are designed to be that way, so this doesn't touch the whole thing.
* whitespace fix for freebsddormando2012-07-292-1/+2
| | | | I dunno why it litters .orgs then tries to run them. I'm not a magician.
* remove unused variabledormando2012-07-291-2/+0
| | | | fix warning in new gcc.
* stupid whitespace thing pulls in dead filesdormando2012-07-292-2/+2
| | | | | I don't care why it happened, just don't whitespace check the README files anymore.
* descriptive errors for t/whitespace.tdormando2012-07-291-1/+1
|
* fix some binary.t stuffdormando2012-07-291-2/+2
| | | | I broke 'em earlier
* Added support for automake-1.12 in autogen.shEric McConville2012-07-291-1/+1
|
* Use Markdown for README.Toru Maesaka2012-07-291-5/+15
|
* Fixed issue with invalid binary protocol touch command expiration timeMaksim Zhylinski2012-07-291-2/+2
| | | | (http://code.google.com/p/memcached/issues/detail?id=275)
* add a binary touch test that actaully failsdormando2012-07-291-0/+4
|
* totally destroy test cachesdormando2012-07-291-0/+1
| | | | | | | someone pointed out that cache_destroy wasn't freeing the cache_t pointer. memcached itself never destroys a cache it creates, so this is fine, but it's fixed for completeness...