m6w6/libmemcached
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

15 years agoRun the async tests on the binary protocol as well
Trond Norbye [Tue, 6 Jan 2009 13:27:05 +0000 (14:27 +0100)] 
Run the async tests on the binary protocol as well

15 years agoDisable user_supplied_bug17 on Solaris
Trond Norbye [Tue, 6 Jan 2009 12:49:00 +0000 (13:49 +0100)] 
Disable user_supplied_bug17 on Solaris

value_fetch use iscntrl while it is parsing the key, and this always fails
on my systems. I don't know the language of the text, but I have tried
running the test in zh_CN.UTF-8 and en_US.UTF-8 without success.

15 years agoFix test case for weighted servers.
Brian Aker [Tue, 6 Jan 2009 00:15:07 +0000 (16:15 -0800)] 
Fix test case for weighted servers.

15 years agoRefactor to remove leak in new framework for clone() of server.
Brian Aker [Mon, 5 Jan 2009 23:24:28 +0000 (15:24 -0800)] 
Refactor to remove leak in new framework for clone() of server.

15 years agoRefactor for host_reset, updated test. TODO in code can be safetly ignored
Brian Aker [Mon, 5 Jan 2009 21:51:48 +0000 (13:51 -0800)] 
Refactor for host_reset, updated test. TODO in code can be safetly ignored
under current code (since no malloc is required).

15 years agoRefactor out host_reset and add internal _with() to server creation.
Brian Aker [Mon, 5 Jan 2009 21:21:26 +0000 (13:21 -0800)] 
Refactor out host_reset and add internal _with() to server creation.

15 years agoBug fix for host_reset()
<brian@gir.tangent.org> [Mon, 5 Jan 2009 18:02:01 +0000 (10:02 -0800)] 
Bug fix for host_reset()

15 years agoFix for decrement
<brian@gir.tangent.org> [Sun, 4 Jan 2009 22:16:43 +0000 (14:16 -0800)] 
Fix for decrement

15 years agoDisable SO_SNDTIMEO and SO_RCVTIMEO on Solaris
Trond Norbye [Thu, 11 Dec 2008 18:25:12 +0000 (19:25 +0100)] 
Disable SO_SNDTIMEO and SO_RCVTIMEO on Solaris

setsockopt(SO_SNDTIMEO/SO_RCVTIMEO) returns -1 with errno == 99 (not supported)
I have temporarily disabled the code with #ifdef __sun, but should update
the configure script to test for this and set the correct macros.

15 years agomemcached_io_reset should disconnect from the server without trying to send a quit...
Trond Norbye [Mon, 15 Dec 2008 21:53:54 +0000 (22:53 +0100)] 
memcached_io_reset should disconnect from the server without trying to send a quit command.

memcached_response should not call memcached_io_reset when it receives EXISTS

Thanks to Robey Pointer for providing a patch.

15 years agoAdd --with-memcached to be able to specify the memcached binary to use for make test
Trond Norbye [Wed, 10 Dec 2008 12:30:04 +0000 (13:30 +0100)] 
Add --with-memcached to be able to specify the memcached binary to use for make test

15 years agoSync protocol_binary.h with the memcached repository
Trond Norbye [Mon, 1 Dec 2008 17:30:01 +0000 (18:30 +0100)] 
Sync protocol_binary.h with the memcached repository

16 years agobootstrap should search for aclocal-1.10 and automake-1.10 as well
Trond Norbye [Fri, 28 Nov 2008 23:04:30 +0000 (00:04 +0100)] 
bootstrap should search for aclocal-1.10 and automake-1.10 as well

16 years agoAdded tag 0.25 for changeset 1ed3d51f323f
Brian Aker [Fri, 28 Nov 2008 18:08:23 +0000 (10:08 -0800)] 
Added tag 0.25 for changeset 1ed3d51f323f

16 years agoFix for config to not be stored into filesystem. 0.25
Brian Aker [Fri, 28 Nov 2008 18:08:14 +0000 (10:08 -0800)] 
Fix for config to not be stored into filesystem.

16 years agoFix for bad disconnect during test run.
Brian Aker [Fri, 28 Nov 2008 17:57:42 +0000 (09:57 -0800)] 
Fix for bad disconnect during test run.

16 years agoIncomming fix from Chris
<brian@gir-3.local> [Fri, 28 Nov 2008 17:49:54 +0000 (09:49 -0800)] 
Incomming fix from Chris

16 years agoPatch from evn
<brian@gir-3.local> [Fri, 21 Nov 2008 23:45:23 +0000 (15:45 -0800)] 
Patch from evn

16 years agoRemoving purge support for the time being.
<brian@gir-3.local> [Mon, 17 Nov 2008 22:13:14 +0000 (17:13 -0500)] 
Removing purge support for the time being.

16 years agoFix for most errors around non-block
Brian Aker [Sun, 16 Nov 2008 02:15:28 +0000 (18:15 -0800)] 
Fix for most errors around non-block

16 years agoStraighten up exection path
Brian Aker [Sat, 15 Nov 2008 22:01:12 +0000 (14:01 -0800)] 
Straighten up exection path

16 years agoTrying to remove dead branch
<brian@gir-3.local> [Sat, 15 Nov 2008 17:12:30 +0000 (12:12 -0500)] 
Trying to remove dead branch

16 years agoMerge.
<brian@gir-3.local> [Sat, 15 Nov 2008 17:07:50 +0000 (12:07 -0500)] 
Merge.

16 years agoFix to make sure we do not copy an element on top of itself.
<brian@gir-3.local> [Sat, 15 Nov 2008 16:15:43 +0000 (11:15 -0500)] 
Fix to make sure we do not copy an element on top of itself.

16 years agoRemove dead variable and on close check value of file descriptor.
<brian@gir-3.local> [Sat, 15 Nov 2008 16:06:42 +0000 (11:06 -0500)] 
Remove dead variable and on close check value of file descriptor.

16 years agofix io_read bug
Yin Chen [Wed, 5 Nov 2008 09:25:57 +0000 (17:25 +0800)] 
fix io_read bug

16 years agoFix make dist.
<brian@ubuntu> [Tue, 4 Nov 2008 03:50:38 +0000 (19:50 -0800)] 
Fix make dist.

16 years agoAdding missing file
<brian@gir-3.local> [Mon, 3 Nov 2008 22:20:00 +0000 (03:50 +0530)] 
Adding missing file

16 years agoIncomming code for additions in keys (see Changelog)
<brian@gir-3.local> [Mon, 3 Nov 2008 22:15:47 +0000 (03:45 +0530)] 
Incomming code for additions in keys (see Changelog)

16 years agoMerge fixed from trond
<brian@gir-3.local> [Mon, 3 Nov 2008 21:51:23 +0000 (03:21 +0530)] 
Merge fixed from trond

16 years agoSearch for pod2man during configure
Trond Norbye [Thu, 23 Oct 2008 16:34:26 +0000 (18:34 +0200)] 
Search for pod2man during configure

16 years agoPurge the input buffer if I discover a lot of commands being sent and none read ...
Trond Norbye [Wed, 22 Oct 2008 20:08:15 +0000 (22:08 +0200)] 
Purge the input buffer if I discover a lot of commands being sent and none read (to avoid deadlock)

16 years agoSolaris Forte issue fix (inttype over stdint)
<brian@gir.tangent.org> [Thu, 16 Oct 2008 19:19:16 +0000 (12:19 -0700)] 
Solaris Forte issue fix (inttype over stdint)

16 years agoSaving fix for busy wait
Brian Aker [Wed, 15 Oct 2008 05:24:24 +0000 (22:24 -0700)] 
Saving fix for busy wait

16 years agoPatch for memslap by Furuhashi Sadayuk
Brian Aker [Wed, 15 Oct 2008 04:17:18 +0000 (21:17 -0700)] 
Patch for memslap by Furuhashi Sadayuk

16 years agoIncoming update to Murmur
Brian Aker [Wed, 15 Oct 2008 03:42:18 +0000 (20:42 -0700)] 
Incoming update to Murmur

16 years agolibmemcached_config.h should not be installed
Trond Norbye [Wed, 1 Oct 2008 08:58:13 +0000 (10:58 +0200)] 
libmemcached_config.h should not be installed

16 years agoHostname (and filename) should be const in memcached_server_add*
Trond Norbye [Tue, 30 Sep 2008 07:51:11 +0000 (09:51 +0200)] 
Hostname (and filename) should be const in memcached_server_add*

16 years agoAdding missing file.
<brian@gir-3.local> [Mon, 22 Sep 2008 23:36:21 +0000 (02:36 +0300)] 
Adding missing file.

16 years agoMerging in Brian Pontz work on Jenkins hash
<brian@gir-3.local> [Mon, 22 Sep 2008 23:16:51 +0000 (02:16 +0300)] 
Merging in Brian Pontz work on Jenkins hash

16 years agoWrapping up fixed for .24 release
Brian Aker [Tue, 16 Sep 2008 09:59:20 +0000 (02:59 -0700)] 
Wrapping up fixed for .24 release