m6w6/libmemcached
15 years agoFixed up configure.ac to use newer/recommended automake init. Removed a set
Monty Taylor [Wed, 13 May 2009 19:06:45 +0000 (12:06 -0700)] 
Fixed up configure.ac to use newer/recommended automake init. Removed a set
of unused version-setting variables. Set the variable for gnu ld lib versioning.

15 years agoFixed files to work with vpath builds for distcheck.
Monty Taylor [Wed, 13 May 2009 19:04:53 +0000 (12:04 -0700)] 
Fixed files to work with vpath builds for distcheck.

15 years agoAdded srcdir includes so that the include files could be found in vpath builds.
Monty Taylor [Wed, 13 May 2009 19:03:28 +0000 (12:03 -0700)] 
Added srcdir includes so that the include files could be found in vpath builds.

15 years agoFix package variable in AM_INIT_AUTOMAKE
Trond Norbye [Wed, 13 May 2009 15:34:00 +0000 (17:34 +0200)] 
Fix package variable in AM_INIT_AUTOMAKE

15 years agoAdded tag 0.29 for changeset ddaa6a4bb80f
<brian@localhost.localdomain> [Wed, 13 May 2009 15:06:30 +0000 (08:06 -0700)] 
Added tag 0.29 for changeset ddaa6a4bb80f

15 years agoUpdates for 0.29 release 0.29
<brian@localhost.localdomain> [Wed, 13 May 2009 15:06:24 +0000 (08:06 -0700)] 
Updates for 0.29 release

15 years agoTurned on more warnings, and fixed the errors. Moved common.h, which includes
Monty Taylor [Wed, 13 May 2009 09:53:59 +0000 (11:53 +0200)] 
Turned on more warnings, and fixed the errors. Moved common.h, which includes
the config.h file to being included first in impl files, so that includes of
things like stdlib.h can take advantage of autoconf produce defines.

15 years agoEnabled warnings=errors for GCC and then made things compile. Had to turn off
Monty Taylor [Wed, 13 May 2009 07:43:30 +0000 (09:43 +0200)] 
Enabled warnings=errors for GCC and then made things compile. Had to turn off
strict aliasing so we could type-pun the function pointers. I think there's a
better solution there, but we're stricter than we were.

15 years agoAdded descriptions to fix debian manpage-has-bad-whatis-entry lintian tag.
Monty Taylor [Tue, 12 May 2009 15:56:43 +0000 (08:56 -0700)] 
Added descriptions to fix debian manpage-has-bad-whatis-entry lintian tag.

15 years agoSetup for next version (and fixes for util for RPM)
<brian@localhost.localdomain> [Wed, 13 May 2009 06:49:25 +0000 (23:49 -0700)] 
Setup for next version (and fixes for util for RPM)

15 years agoFixed up review comments from Brian
Trond Norbye [Tue, 12 May 2009 00:51:25 +0000 (02:51 +0200)] 
Fixed up review comments from Brian

15 years agoConvert DOS crlf to just lf
Trond Norbye [Mon, 11 May 2009 12:07:17 +0000 (14:07 +0200)] 
Convert DOS crlf to just lf

15 years agoAdded libmemcachedutil containing utility functions
Trond Norbye [Mon, 11 May 2009 11:51:40 +0000 (13:51 +0200)] 
Added libmemcachedutil containing utility functions

15 years agouser: Matt Ingenthron <ingenthr@cep.net>
<MattIngenthroningenthr@cep.net> [Sun, 3 May 2009 20:02:08 +0000 (13:02 -0700)] 
user: Matt Ingenthron <ingenthr@cep.net>
changed docs/memcached_behavior.pod

Modified documentation commit to be a bit more clear in English about
what is happening with MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH

15 years agoFlush _all_ servers when we hit the prefetch limit
Trond Norbye [Sun, 3 May 2009 21:30:16 +0000 (14:30 -0700)] 
Flush _all_ servers when we hit the prefetch limit

15 years agoAdded support for MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH
Trond Norbye [Sun, 3 May 2009 19:27:56 +0000 (12:27 -0700)] 
Added support for MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH

From the man page:
The binary protocol works a bit different than the textual protocol in the
way that a multiget is implemented as a pipe of single get-operations that
is sent to the server in a chunk. If you use large multigets you may improve
the latency by setting this value so that you send out the first chunk of
requests when you hit the specified limit, allowing the server to start
processing the request and send the data back while the rest of the
requests is created.

15 years agoPOLLERR is a returned event value
Trond Norbye [Sat, 2 May 2009 07:00:31 +0000 (00:00 -0700)] 
POLLERR is a returned event value

15 years agoRefactor: memcached_io_read should return memcached_return error codes
Trond Norbye [Sat, 2 May 2009 06:54:30 +0000 (23:54 -0700)] 
Refactor: memcached_io_read should return memcached_return error codes

15 years agoSwallow new stats from 1.3 servers. We need a new stats design
Trond Norbye [Sat, 2 May 2009 03:25:38 +0000 (20:25 -0700)] 
Swallow new stats from 1.3 servers. We need a new stats design

15 years agoAdd support for AUTO_EJECT_HOST
Robey Pointer [Sat, 2 May 2009 02:44:39 +0000 (19:44 -0700)] 
Add support for AUTO_EJECT_HOST

15 years agoNew Spec file.
<brian@localhost.localdomain> [Fri, 1 May 2009 20:51:45 +0000 (13:51 -0700)] 
New Spec file.

15 years agoDisable hsieh algorithm by default
Eric Lambert [Fri, 1 May 2009 02:31:48 +0000 (19:31 -0700)] 
Disable hsieh algorithm by default

Per a conversation with Brian earlier this week, there are some licensing
issues with the hsieh hashing algorithm that make it 'desirable' for support
of this algorithm to be a compile time option. This patch turns off support
for hsieh by default but allows it to be used when '--enable-hsieh_hash' is
passed into configure.

15 years agoDo not install libmemcached_config.h
Trond Norbye [Thu, 30 Apr 2009 18:27:26 +0000 (11:27 -0700)] 
Do not install libmemcached_config.h

15 years agoAdd support for incr/decr with initial value
Tasuku SUENAGA [Tue, 28 Apr 2009 23:48:18 +0000 (01:48 +0200)] 
Add support for incr/decr with initial value

15 years agoIncrease the size of the buffer for the version string
Trond Norbye [Thu, 16 Apr 2009 19:16:03 +0000 (21:16 +0200)] 
Increase the size of the buffer for the version string

15 years agoChanged behavior for MEMCACHED_BEHAVIOR_NO_BLOCK to no longer also enable MEMCACHED_...
<brian@gir.tangent.org> [Thu, 16 Apr 2009 16:33:40 +0000 (09:33 -0700)] 
Changed behavior for MEMCACHED_BEHAVIOR_NO_BLOCK to no longer also enable  MEMCACHED_BEHAVIOR_BUFFER_REQUESTS

15 years agoAdded tag 0.28 for changeset db4cc63f60ac
<brian@localhost.localdomain> [Wed, 15 Apr 2009 02:08:30 +0000 (19:08 -0700)] 
Added tag 0.28 for changeset db4cc63f60ac

15 years agoSetup for version .28 and fix for RPM build for Fedora 10 0.28
<brian@localhost.localdomain> [Wed, 15 Apr 2009 02:08:19 +0000 (19:08 -0700)] 
Setup for version .28 and fix for RPM build for Fedora 10

15 years agoFix warning for not found gettimeofday in memstat
<brian@localhost.localdomain> [Wed, 15 Apr 2009 01:54:56 +0000 (18:54 -0700)] 
Fix warning for not found gettimeofday in memstat

15 years agoFix overrun on value
<brian@gir.tangent.org> [Tue, 14 Apr 2009 15:05:27 +0000 (08:05 -0700)] 
Fix overrun on value

15 years agoFix for by_key()
<brian@gir.tangent.org> [Tue, 14 Apr 2009 14:20:57 +0000 (07:20 -0700)] 
Fix for by_key()

15 years agoRecommitting fix for non-init
<brian@gir.tangent.org> [Tue, 14 Apr 2009 14:10:40 +0000 (07:10 -0700)] 
Recommitting fix for non-init

15 years agoFix for test from Eric (we should rework this around the API)
Brian Aker [Tue, 31 Mar 2009 03:30:03 +0000 (20:30 -0700)] 
Fix for test from Eric (we should rework this around the API)

15 years agoAdded tag 0.27 for changeset 8340670b8220
Brian Aker [Mon, 30 Mar 2009 06:05:56 +0000 (23:05 -0700)] 
Added tag 0.27 for changeset 8340670b8220

15 years agoFixingup for release 0.27
Brian Aker [Mon, 30 Mar 2009 06:05:49 +0000 (23:05 -0700)] 
Fixingup for release

15 years agoUpdate the docs for memcached_clone.
Trond Norbye [Fri, 27 Mar 2009 21:22:14 +0000 (22:22 +0100)] 
Update the docs for memcached_clone.

15 years agoUnify the execution flow for fetch related functions and fix memcached_fetch_execute...
Toru Maesaka [Fri, 27 Mar 2009 02:50:56 +0000 (11:50 +0900)] 
Unify the execution flow for fetch related functions and fix memcached_fetch_execute() to not always return success.

15 years agoBacked out changeset 74a1c5ce90d4
Trond Norbye [Thu, 26 Mar 2009 14:53:19 +0000 (15:53 +0100)] 
Backed out changeset 74a1c5ce90d4

There seems to be a problem with with using freed memory..

15 years agoUnify the execution flow for fetch related functions and fix memcached_fetch_execute...
Toru Maesaka [Thu, 26 Mar 2009 12:20:19 +0000 (21:20 +0900)] 
Unify the execution flow for fetch related functions and fix memcached_fetch_execute() to not always return success.

15 years agoRefactor: Rename value_fetch to textual_value_fetch
Trond Norbye [Thu, 26 Mar 2009 07:59:32 +0000 (08:59 +0100)] 
Refactor: Rename value_fetch to textual_value_fetch

The function value_fetch used to be located in memcached_fetch.c and
implemented the parsing of the VALUE response used in the textual protocol.
This function is not part of the public API, and is only called from
memcached_response.c so it should live there (with static linkage)

15 years agoUse poll() to determine next readable server
Trond Norbye [Tue, 24 Mar 2009 14:33:38 +0000 (15:33 +0100)] 
Use poll() to determine next readable server

15 years agoUse ptr->root->result if the caller didn't provide a result structure to memcached_re...
Trond Norbye [Mon, 23 Mar 2009 08:38:04 +0000 (09:38 +0100)] 
Use ptr->root->result if the caller didn't provide a result structure to memcached_read_one_response

15 years agoFixed actual loop in add_wrapper ;-)
Trond Norbye [Sat, 21 Mar 2009 13:34:52 +0000 (14:34 +0100)] 
Fixed actual loop in add_wrapper ;-)

15 years agoRefactor: memcachd_key_test -> memcached_key_test
Steve Yen [Sat, 21 Mar 2009 13:09:45 +0000 (14:09 +0100)] 
Refactor: memcachd_key_test -> memcached_key_test

15 years agoLower the number of iterations in add_wrapper
Trond Norbye [Thu, 19 Mar 2009 17:03:33 +0000 (18:03 +0100)] 
Lower the number of iterations in add_wrapper

15 years agoCompute jenkins hash byte by byte on big endian platforms
Trond Norbye [Thu, 19 Mar 2009 16:59:27 +0000 (17:59 +0100)] 
Compute jenkins hash byte by byte on big endian platforms

15 years agoCopy all tunable members in memcached_clone and add test case to verify
Trond Norbye [Thu, 19 Mar 2009 14:56:16 +0000 (15:56 +0100)] 
Copy all tunable members in memcached_clone and add test case to verify

15 years agoFixed typos in the documentation
Steve Yen [Thu, 19 Mar 2009 09:41:02 +0000 (10:41 +0100)] 
Fixed typos in the documentation

15 years agoThe clients and test programs should not be compiled with MEMCACHED_INTERNAL defined
Trond Norbye [Fri, 13 Mar 2009 10:24:51 +0000 (11:24 +0100)] 
The clients and test programs should not be compiled with MEMCACHED_INTERNAL defined

15 years agoCheck if the operating system provides a working ntohll
Trond Norbye [Fri, 13 Mar 2009 10:23:44 +0000 (11:23 +0100)] 
Check if the operating system provides a working ntohll

15 years agoCreate a new make-target: test-no-outputdiff
Trond Norbye [Fri, 13 Mar 2009 10:21:03 +0000 (11:21 +0100)] 
Create a new make-target: test-no-outputdiff

15 years agoPreserve the make invoked for test, test-extended and valgrind make target
Trond Norbye [Fri, 13 Mar 2009 10:13:13 +0000 (11:13 +0100)] 
Preserve the make invoked for test, test-extended and valgrind make target

15 years agoSilently ignore the new stats fields
Trond Norbye [Fri, 13 Mar 2009 09:54:04 +0000 (10:54 +0100)] 
Silently ignore the new stats fields

The 1.3 beta includes new stats elements, so libmemcached will print out
multiple error messages when you issue the stats call.

memcached_stat_st is publicly available, so we cannot add new members to
the struct without breaking binary compatibility.

15 years agominor tweaks to udp testcode and new error string
Eric Lambert [Fri, 13 Mar 2009 06:56:33 +0000 (15:56 +0900)] 
minor tweaks to udp testcode and new error string

15 years agoFix coding style violations
Trond Norbye [Wed, 11 Mar 2009 20:06:43 +0000 (21:06 +0100)] 
Fix coding style violations

15 years agoDocument UDP behavior
Eric Lambert [Tue, 10 Mar 2009 08:16:33 +0000 (09:16 +0100)] 
Document UDP behavior

15 years agoSkip IPv6 addresses in UDP mode (the server doesn't listen on them)
Eric Lambert [Mon, 9 Mar 2009 22:01:08 +0000 (23:01 +0100)] 
Skip IPv6 addresses in UDP mode (the server doesn't listen on them)

15 years agoudp support in fire and forget mode for all ops but get/gets, stat and version
Eric Lambert [Mon, 9 Mar 2009 21:59:06 +0000 (22:59 +0100)] 
udp support in fire and forget mode for all ops but get/gets, stat and version

15 years agoFix connect with timeouts
Trond Norbye [Sun, 1 Mar 2009 17:35:47 +0000 (18:35 +0100)] 
Fix connect with timeouts

Connection timeouts must be implemented by using nonblocking mode and a timer.
The logic was more or less implemented (except for that it didn't enable
non-blocking mode on the socket), and that you need to call connect again when
poll returns that the socket is writable (to get the real error from the
socket).

15 years agoPreserve errno for write failures
Robey Pointer [Thu, 26 Feb 2009 08:25:38 +0000 (09:25 +0100)] 
Preserve errno for write failures

15 years agoFixed retrieval of io-watermarks
Trond Norbye [Wed, 25 Feb 2009 10:13:26 +0000 (11:13 +0100)] 
Fixed retrieval of io-watermarks

15 years agoFixed typo: SO_RCVBUF instead of SO_SNDBUF
Trond Norbye [Tue, 24 Feb 2009 15:07:24 +0000 (16:07 +0100)] 
Fixed typo: SO_RCVBUF instead of SO_SNDBUF

15 years agodo function should not increment response counter in no reply mode
Eric Lambert [Tue, 24 Feb 2009 12:18:04 +0000 (04:18 -0800)] 
do function should not increment response counter in no reply mode

15 years agoversion_binary no longer attempts to parse invalid response
Eric Lambert [Tue, 24 Feb 2009 12:55:46 +0000 (13:55 +0100)] 
version_binary no longer attempts to parse invalid response

15 years agoversion_textual no longer attempts to parse invalid response
Eric Lambert [Tue, 24 Feb 2009 12:22:13 +0000 (04:22 -0800)] 
version_textual no longer attempts to parse invalid response

15 years agoFirst version of network latency test for memstat
Toru Maesaka [Fri, 13 Feb 2009 13:34:04 +0000 (22:34 +0900)] 
First version of network latency test for memstat

15 years agoSeparate the analyzer code in main() to its own function for future patches
Toru Maesaka [Thu, 12 Feb 2009 10:13:31 +0000 (19:13 +0900)] 
Separate the analyzer code in main() to its own function for future patches

15 years agoFixed compiler warning for wrong printf placeholder in memstat
Toru Maesaka [Thu, 12 Feb 2009 05:27:23 +0000 (14:27 +0900)] 
Fixed compiler warning for wrong printf placeholder in memstat

15 years agoUpdated the library version constant to 0.26 (seems it was forgotten)
Toru Maesaka [Tue, 10 Feb 2009 08:13:56 +0000 (17:13 +0900)] 
Updated the library version constant to 0.26 (seems it was forgotten)

15 years agoAdded tag 0.26 for changeset 3cb64824c21a
Brian Aker [Thu, 29 Jan 2009 21:16:01 +0000 (13:16 -0800)] 
Added tag 0.26 for changeset 3cb64824c21a

15 years agoCleanup for version 0.26 0.26
Brian Aker [Thu, 29 Jan 2009 21:15:58 +0000 (13:15 -0800)] 
Cleanup for version 0.26

15 years agoImplemented support for noreply in the binary protocol
Trond Norbye [Tue, 27 Jan 2009 11:34:32 +0000 (12:34 +0100)] 
Implemented support for noreply in the binary protocol

Please note that the quiet commands in the binary protocol was added
recently, so you need a recent build of the memcached 1.3.x server.
(at least http://github.com/dustin/memcached/commit/0e8a58a8afbb8f15e42b001f2442858cfa3dcbb6 )

15 years agoExport generate_hash_value as memcache_generate_hash_value and fix key length check...
Robey Pointer [Fri, 23 Jan 2009 12:23:28 +0000 (13:23 +0100)] 
Export generate_hash_value as memcache_generate_hash_value and fix key length check to use the constant.

15 years agoSource cleanup (remove compiler warnings ++)
Trond Norbye [Fri, 23 Jan 2009 10:43:14 +0000 (11:43 +0100)] 
Source cleanup (remove compiler warnings ++)

Set warning == errors on Sun Studio compilers.
Added const to the "C++" API to remove compiler warnings.
Removed statements that couldn't be reached.

15 years agoAdded Toru Maesaka to the AUTHORS file
Trond Norbye [Fri, 23 Jan 2009 09:45:00 +0000 (10:45 +0100)] 
Added Toru Maesaka to the AUTHORS file

15 years agoreplace memcached_readline with memcached_io_readline
Trond Norbye [Fri, 23 Jan 2009 09:41:32 +0000 (10:41 +0100)] 
replace memcached_readline with memcached_io_readline

Moved the readline function into the io layer and use the buffer directly
instead of calling memcached_io_read for each byte

15 years agoFix connect bug in memcached_flush_buffers and syntax bug in noreply
Trond Norbye [Fri, 23 Jan 2009 08:52:17 +0000 (09:52 +0100)] 
Fix connect bug in memcached_flush_buffers and syntax bug in noreply

When I fixed the bug in memcached_flush_buffers I also improved the test
case for noreply (checking that the items got stored). This revealed
that I had a format bug in the noreply code for the textual protocol causing
protocol error instead of setting the items...

15 years agoAdded cluster analysis functionality to the library and memstat
Toru Maesaka [Fri, 23 Jan 2009 08:02:41 +0000 (17:02 +0900)] 
Added cluster analysis functionality to the library and memstat

15 years agoRemove compiler warnings from test suite
Trond Norbye [Thu, 22 Jan 2009 16:27:34 +0000 (17:27 +0100)] 
Remove compiler warnings from test suite

15 years agoAdded prototype for memcached_flush_buffers
Trond Norbye [Thu, 22 Jan 2009 15:25:42 +0000 (16:25 +0100)] 
Added prototype for memcached_flush_buffers

15 years agoIgnore tests/core and backup files from emacs (*~)
Trond Norbye [Thu, 22 Jan 2009 14:37:56 +0000 (15:37 +0100)] 
Ignore tests/core and backup files from emacs (*~)

15 years agoFix configure check for SO_RCVTIMEO on macs: they need an extra header.
Robey Pointer [Thu, 22 Jan 2009 08:39:28 +0000 (09:39 +0100)] 
Fix configure check for SO_RCVTIMEO on macs: they need an extra header.

15 years agoAdded new command: memcached_flush_buffers
Trond Norbye [Wed, 21 Jan 2009 10:03:42 +0000 (11:03 +0100)] 
Added new command: memcached_flush_buffers

15 years agoDelete useless code.
Toru Maesaka [Wed, 21 Jan 2009 06:46:05 +0000 (15:46 +0900)] 
Delete useless code.

15 years agomemcached_io_reset passed wrong struct
Steve Yen [Tue, 20 Jan 2009 20:59:52 +0000 (12:59 -0800)] 
memcached_io_reset passed wrong struct

15 years agojust a typo fix, getting comfy with hg
Steve Yen [Tue, 20 Jan 2009 20:40:25 +0000 (12:40 -0800)] 
just a typo fix, getting comfy with hg

15 years agoConfigure should detect and enable C99
Trond Norbye [Tue, 20 Jan 2009 22:13:02 +0000 (23:13 +0100)] 
Configure should detect and enable C99

15 years agoImplement memcached_behavior_noreply
Trond Norbye [Tue, 20 Jan 2009 11:34:40 +0000 (12:34 +0100)] 
Implement memcached_behavior_noreply

15 years agoSeparated the server listing (print) code in memstat to it's own internal function...
Toru Maesaka [Mon, 19 Jan 2009 04:09:54 +0000 (13:09 +0900)] 
Separated the server listing (print) code in memstat to it's own internal function. This is to avoid making main() messy by adding code for the node/pool analyzer work.

15 years agoPrint help with startup error to save people from re-executing with --help
Toru Maesaka [Fri, 16 Jan 2009 10:05:07 +0000 (19:05 +0900)] 
Print help with startup error to save people from re-executing with --help

15 years agoDeprecate MEMCACHED_NO_KEY_PROVIDED, and fixed key validation tests for the binary...
Trond Norbye [Sat, 10 Jan 2009 18:11:17 +0000 (19:11 +0100)] 
Deprecate MEMCACHED_NO_KEY_PROVIDED, and fixed key validation tests for the binary protocol

15 years agoMerge.
Brian Aker [Fri, 9 Jan 2009 21:00:18 +0000 (13:00 -0800)] 
Merge.

15 years agoChanged memcached_servers_parse() to take const
Brian Aker [Fri, 9 Jan 2009 20:59:43 +0000 (12:59 -0800)] 
Changed memcached_servers_parse() to take const

15 years agoChange binary protocol behavior to disallow the use of key verification. (We disable...
<hannu.valtonen@hut.fi> [Fri, 9 Jan 2009 09:21:54 +0000 (11:21 +0200)] 
Change binary protocol behavior to disallow the use of key verification. (We disable key verification in case setting binary-protocol behavior, and disallow setting key verification behavior in case binary protocol is already in use. Motivation for this is to allow the use of arbitrary key content i.e. non-ascii

15 years agoRemoved obsolete DTrace related macros
Trond Norbye [Wed, 7 Jan 2009 21:57:46 +0000 (22:57 +0100)] 
Removed obsolete DTrace related macros

15 years agoFixed the support for DTrace so that it also builds on Mac OSX
Trond Norbye [Wed, 7 Jan 2009 13:28:25 +0000 (14:28 +0100)] 
Fixed the support for DTrace so that it also builds on Mac OSX

15 years agoFix for test case to not leak memory.
Brian Aker [Tue, 6 Jan 2009 22:40:14 +0000 (14:40 -0800)] 
Fix for test case to not leak memory.

15 years agoMerge
Brian Aker [Tue, 6 Jan 2009 22:08:49 +0000 (14:08 -0800)] 
Merge

15 years agoImport new purge work from trond
Brian Aker [Tue, 6 Jan 2009 22:08:04 +0000 (14:08 -0800)] 
Import new purge work from trond

15 years agoTest for a working SO_SNDTIMEO and SO_RCVTIMEO during configure
Trond Norbye [Tue, 6 Jan 2009 14:46:41 +0000 (15:46 +0100)] 
Test for a working SO_SNDTIMEO and SO_RCVTIMEO during configure