summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* fix incr/decr race conditions for binary protdormando2011-07-113-67/+73
| | | | | | | | | | | there were two race conditions in the incr/decr binary protocol handler. One was the original "fetches item outside of add_delta", and the second was in the initializer. I went for the quick fix by changing the semantics of the store request to be an ADD instead of a SET, so if someone beat them in that very narrow race the request simply bounces. Not perfect but this is an improvement and good enough for now.
* fix incr/decr race conditions for ASCII protdormando2011-07-113-24/+34
| | | | | binprot requires more work, since it touches CAS and also has a race for initializing a missed incr.
* Fix incorrect udp_port bind selection.Dan McGee2011-07-071-2/+2
| | | | | | | Failed to use a local udp_port variable that can be derived from two different settings properties. (revealed with -Werror=unused-but-set-variable)
* Compile fix (-Werror=unused-but-set-variable warnings)Dan McGee2011-07-071-3/+1
| | | | | Assertion is no-longer needed after a conversion from sprintf() to snprintf().
* Bind each UDP socket to an a single worker thread in multiport envTrond Norbye2011-03-013-2/+15
|
* Add support for using multiple portsTrond Norbye2011-03-011-3/+33
|
* Issue 154: pid file out of sync (created before socket binding)Trond Norbye2010-11-121-9/+18
|
* Issue 163: Buggy mem_requested valuesTrond Norbye2010-11-124-0/+55
|
* Fix cross compilation issues in configureTrond Norbye2010-11-111-23/+10
|
* Issue 140 - Fix age for items statsTrond Norbye2010-11-102-1/+56
|
* Issue 131 - ChangeLog is outdatedTrond Norbye2010-11-101-0/+4
| | | | | | ChangeLog is no longer being updated and no one wants to maintain it. This patch adds an entry to the ChangeLog that redirect the users to the ReleaseNotes on the wiki.
* Issue 155: bind to multiple interfaceTrond Norbye2010-11-101-4/+31
|
* Issue 161 incorrect allocation in cache_createTrond Norbye2010-11-102-1/+35
|
* Fix type-punning issues exposed with GCC 4.5.1Dan McGee2010-11-021-8/+17
| | | | | | | | | | | | | | | | | | | | | The errors below are due to pointer magic that isn't allowed if following C strict-aliasing rules: memcached.c: In function ‘complete_incr_bin’: memcached.c:1023:16: error: dereferencing type-punned pointer will break strict-aliasing rules memcached.c:1044:13: error: dereferencing type-punned pointer will break strict-aliasing rules memcached.c:1061:17: error: dereferencing type-punned pointer will break strict-aliasing rules Fix this by introducing a union type that allows access to the uint64_t member as necessary, but doesn't add any additional length to the structure. The size remains the same before and after; the only difference is explict casts are now refactored into union member accesses and all compilers should be happy. Signed-off-by: Dan McGee <dan@archlinux.org>
* Simplify stats aggregation codeDan McGee2010-11-021-16/+4
| | | | | | | | | We can use memset, unlike what the previous comment said, because this is a one-time allocated thread_stats struct that doesn't actually use the mutex for anything. This simplifies the setup code a decent amount and makes one fewer place where things need to be added if a new stat is introduced. Signed-off-by: Dan McGee <dan@archlinux.org>
* Reverse backward expected/actual params in testDan McGee2010-11-021-1/+1
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Issue 152: Fix error message from mgetTrond Norbye2010-09-142-0/+23
|
* Refuse to start if we detect libevent 1.[12]Trond Norbye2010-09-143-2/+30
|
* Fix compilation issue on Solaris 9 wrt isspace() macro - Resolves issue 111Paul Lindner2010-09-141-4/+7
|
* Allow use of a UNIX socket in addition to INET socketsJon Jensen2010-04-201-8/+19
|
* Remove item > 1MB assertion - bug 1191.4.5Dustin Sallings2010-04-021-1/+0
|
* Add links to http://contributing.appspot.com/memcachedBrad Fitzpatrick2010-03-203-0/+10
|
* Add support for --enable-sasl-pwdbTrond Norbye2010-03-062-4/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | --enable-sasl-pwdb allows memcached to use it's own password file and verify a plaintext password. The file is specified with the environment variable MEMCACHED_SASL_PWDB, and is a plain text file with the following syntax: username:password Please note that you have to specify "mech_list: plain" in your sasl config file for this to work. Ex: echo "mech_list: plain" > memcached.conf echo "myname:mypass" > /tmp/memcached-sasl-db export MEMCACHED_SASL_PWDB=/tmp/memcached-sasl-db export SASL_CONF_PATH=`pwd`/memcached.conf ./memcached -S -v and you should be able to use your favorite memcached client with sasl support to connect to the server. (Please note that not all SASL implementations support SASL_CB_GETCONF, so you may have to install the sasl config (memcached.conf) to the systemwide location)
* Use vperror to print error messages related to pid file problemsJørgen Austvik2010-02-221-3/+3
|
* Fix potential buffer overflow in vperrorTrond Norbye2010-02-221-2/+4
|
* Backporting AC_PROG_CC_C99 macro for redhat.Dustin Sallings2010-02-203-1/+191
| | | | | | RedHat 5.4 (and CentOS) ship with 2.59 which doesn't have the AC_PROG_CC_C99 macro necessary for detecting C99 flags for the compiler.
* Added reclaimed statistics.Trond Norbye2010-01-127-4/+28
| | | | | This counts then number of times an expired object was reclaimed to store a new item.
* Remove compile warnings on openBSDTrond Norbye2009-12-301-6/+9
|
* Rewrote tools detection to work with a non-gnu whichTrond Norbye2009-12-301-10/+29
|
* Try aclocal-1.11 now that we use automake-1.11Trond Norbye2009-12-261-1/+1
|
* doc fixesPaul Lindner2009-12-261-2/+2
|
* add tests to detect ARM CPU alignment issuesPaul Lindner2009-12-261-1/+7
|
* Fedora 12 has automake 1.11Paul Lindner2009-12-261-1/+1
|
* Allow noreply mixed with 0 delay.1.4.4Dustin Sallings2009-11-263-7/+25
|
* Allow a delete duration of 0.Dustin Sallings2009-11-262-1/+22
| | | | | This change covers the case where a reply is requested. A separate, more complicated change mixes in noreplys and 0 duration deletes.
* Fix warning at end of stats responses in sasl testdormando2009-11-261-2/+2
|
* Added auth_enabled_sasl setting stat and tests for the sasl stats.Matt Ingenthron2009-11-265-52/+67
| | | | | | | | | | | Added basic sasl stats and tests for whether or not those stats return the expected values. The preferred method would be to reauth but that is not expected to currently work because of how the underlying sasl library works. Instead, the test is dependent upon what has happened earlier with other tests. The name for the stat includes the suffix of _sasl because there may some day be an option for other types of authentication.
* Added new stats to track sasl authentication.Matt Ingenthron2009-11-265-2/+35
| | | | | | | | Two new stats, auth_cmds and auth_unknowns have been added to allow end users to track how often authentications commands are submitted and when they "fail". Successes can be calculated by clients. Rename to auth_errors and add to protocol.txt.
* Fix compilation warning1.4.3Trond Norbye2009-11-041-1/+2
|
* Allow semi-broken C99 compilers to compile memcachedTrond Norbye2009-11-044-8/+50
| | | | | | | | | Some C compilers understand the syntax we use in memcached, but do not ship stdbool.h or stdint.h. According to C99 inttypes.h contains the formatting macros we use (PRInn) and is supposed to include stdint.h. This patch tries to detect stdbool.h and inttypes.h and tries to include them from config.h
* Extend test-case for 102 to verify that large multigets work1.4.3-rc2Trond Norbye2009-11-021-0/+31
|
* Use strncmp when checking for large ascii multigets.Tomash Brechko2009-11-021-1/+3
|
* distribute damemtop1.4.3-rc1dormando2009-11-023-0/+607
|
* Make autoversioning/spec gen work better.dormando2009-11-023-5/+67
| | | | | issue #98 is about how our specfiles for rc's aren't upgradeable. Now they should be.
* Clarify binary GET does not take flags.Dustin Sallings2009-11-011-6/+0
|
* Moved memory_management.txt to the wiki.Dustin Sallings2009-11-011-95/+0
| | | | http://code.google.com/p/memcached/wiki/MemoryManagement
* Update stat documentation to reflect allocation strategy.Dustin Sallings2009-11-011-5/+5
| | | | | | | | | | | The documentation stated that memory allocation was always in chunks of 1MB. In practice, this gets less effecient as you get into larger slabs. The 1MB thing (which can be controlled by -I) is both the maximum size and allocation unit so a single allocate event will attempt to get as many items for a particular slab as it can as long as the allocation itself doesn't exceed the maximum item size.
* Enable test for bug101 to be skipped.Dustin Sallings2009-10-301-0/+4
| | | | | | | | This can potentially use a lot of memory on a host and some of the build slaves don't like that too much. It will run everywhere by default, but may be disabled by setting the SKIP_TEST_101 environment variable.
* Use slab class growth factor for slab size limitColin Pitrat2009-10-301-1/+1
| | | | | | | | | | | | | | Re Colin: "When using a growth factor smaller than 2.0, the normal growth stops once the chunk size reach half the page size (1 MB by default)." This adds two more slab classes by default, but makes memcached a little more efficient for larger values. This will create a *lot* more slabs if you are increasing the page limit via -I However, if you're lowering the memory limit, this helps keep things efficient. -Dormando
* Ensure LRU tests use largest slab.dormando2009-10-301-4/+1
|