Brian Aker [Mon, 30 Mar 2009 06:05:49 +0000 (23:05 -0700)]
Fixingup for release
Trond Norbye [Fri, 27 Mar 2009 21:22:14 +0000 (22:22 +0100)]
Update the docs for memcached_clone.
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.
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..
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.
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)
Trond Norbye [Tue, 24 Mar 2009 14:33:38 +0000 (15:33 +0100)]
Use poll() to determine next readable server
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
Trond Norbye [Sat, 21 Mar 2009 13:34:52 +0000 (14:34 +0100)]
Fixed actual loop in add_wrapper ;-)
Steve Yen [Sat, 21 Mar 2009 13:09:45 +0000 (14:09 +0100)]
Refactor: memcachd_key_test -> memcached_key_test
Trond Norbye [Thu, 19 Mar 2009 17:03:33 +0000 (18:03 +0100)]
Lower the number of iterations in add_wrapper
Trond Norbye [Thu, 19 Mar 2009 16:59:27 +0000 (17:59 +0100)]
Compute jenkins hash byte by byte on big endian platforms
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
Steve Yen [Thu, 19 Mar 2009 09:41:02 +0000 (10:41 +0100)]
Fixed typos in the documentation
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
Trond Norbye [Fri, 13 Mar 2009 10:23:44 +0000 (11:23 +0100)]
Check if the operating system provides a working ntohll
Trond Norbye [Fri, 13 Mar 2009 10:21:03 +0000 (11:21 +0100)]
Create a new make-target: test-no-outputdiff
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
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.
Eric Lambert [Fri, 13 Mar 2009 06:56:33 +0000 (15:56 +0900)]
minor tweaks to udp testcode and new error string
Trond Norbye [Wed, 11 Mar 2009 20:06:43 +0000 (21:06 +0100)]
Fix coding style violations
Eric Lambert [Tue, 10 Mar 2009 08:16:33 +0000 (09:16 +0100)]
Document UDP behavior
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)
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
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).
Robey Pointer [Thu, 26 Feb 2009 08:25:38 +0000 (09:25 +0100)]
Preserve errno for write failures
Trond Norbye [Wed, 25 Feb 2009 10:13:26 +0000 (11:13 +0100)]
Fixed retrieval of io-watermarks
Trond Norbye [Tue, 24 Feb 2009 15:07:24 +0000 (16:07 +0100)]
Fixed typo: SO_RCVBUF instead of SO_SNDBUF
Eric Lambert [Tue, 24 Feb 2009 12:18:04 +0000 (04:18 -0800)]
do function should not increment response counter in no reply mode
Eric Lambert [Tue, 24 Feb 2009 12:55:46 +0000 (13:55 +0100)]
version_binary 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
Toru Maesaka [Fri, 13 Feb 2009 13:34:04 +0000 (22:34 +0900)]
First version of network latency test for memstat
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
Toru Maesaka [Thu, 12 Feb 2009 05:27:23 +0000 (14:27 +0900)]
Fixed compiler warning for wrong printf placeholder in memstat
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)
Brian Aker [Thu, 29 Jan 2009 21:16:01 +0000 (13:16 -0800)]
Added tag 0.26 for changeset
3cb64824c21a
Brian Aker [Thu, 29 Jan 2009 21:15:58 +0000 (13:15 -0800)]
Cleanup for version 0.26
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 )
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.
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.
Trond Norbye [Fri, 23 Jan 2009 09:45:00 +0000 (10:45 +0100)]
Added Toru Maesaka to the AUTHORS file
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
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...
Toru Maesaka [Fri, 23 Jan 2009 08:02:41 +0000 (17:02 +0900)]
Added cluster analysis functionality to the library and memstat
Trond Norbye [Thu, 22 Jan 2009 16:27:34 +0000 (17:27 +0100)]
Remove compiler warnings from test suite
Trond Norbye [Thu, 22 Jan 2009 15:25:42 +0000 (16:25 +0100)]
Added prototype for memcached_flush_buffers
Trond Norbye [Thu, 22 Jan 2009 14:37:56 +0000 (15:37 +0100)]
Ignore tests/core and backup files from emacs (*~)
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.
Trond Norbye [Wed, 21 Jan 2009 10:03:42 +0000 (11:03 +0100)]
Added new command: memcached_flush_buffers
Toru Maesaka [Wed, 21 Jan 2009 06:46:05 +0000 (15:46 +0900)]
Delete useless code.
Steve Yen [Tue, 20 Jan 2009 20:59:52 +0000 (12:59 -0800)]
memcached_io_reset passed wrong struct
Steve Yen [Tue, 20 Jan 2009 20:40:25 +0000 (12:40 -0800)]
just a typo fix, getting comfy with hg
Trond Norbye [Tue, 20 Jan 2009 22:13:02 +0000 (23:13 +0100)]
Configure should detect and enable C99
Trond Norbye [Tue, 20 Jan 2009 11:34:40 +0000 (12:34 +0100)]
Implement memcached_behavior_noreply
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.
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
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
Brian Aker [Fri, 9 Jan 2009 21:00:18 +0000 (13:00 -0800)]
Merge.
Brian Aker [Fri, 9 Jan 2009 20:59:43 +0000 (12:59 -0800)]
Changed memcached_servers_parse() to take const
<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
Trond Norbye [Wed, 7 Jan 2009 21:57:46 +0000 (22:57 +0100)]
Removed obsolete DTrace related macros
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
Brian Aker [Tue, 6 Jan 2009 22:40:14 +0000 (14:40 -0800)]
Fix for test case to not leak memory.
Brian Aker [Tue, 6 Jan 2009 22:08:49 +0000 (14:08 -0800)]
Merge
Brian Aker [Tue, 6 Jan 2009 22:08:04 +0000 (14:08 -0800)]
Import new purge work from trond
Trond Norbye [Tue, 6 Jan 2009 14:46:41 +0000 (15:46 +0100)]
Test for a working SO_SNDTIMEO and SO_RCVTIMEO during configure
Trond Norbye [Tue, 6 Jan 2009 13:27:05 +0000 (14:27 +0100)]
Run the async tests on the binary protocol as well
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.
Brian Aker [Tue, 6 Jan 2009 00:15:07 +0000 (16:15 -0800)]
Fix test case for weighted servers.
Brian Aker [Mon, 5 Jan 2009 23:24:28 +0000 (15:24 -0800)]
Refactor to remove leak in new framework for clone() of server.
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).
Brian Aker [Mon, 5 Jan 2009 21:21:26 +0000 (13:21 -0800)]
Refactor out host_reset and add internal _with() to server creation.
<brian@gir.tangent.org> [Mon, 5 Jan 2009 18:02:01 +0000 (10:02 -0800)]
Bug fix for host_reset()
<brian@gir.tangent.org> [Sun, 4 Jan 2009 22:16:43 +0000 (14:16 -0800)]
Fix for decrement
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.
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.
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
Trond Norbye [Mon, 1 Dec 2008 17:30:01 +0000 (18:30 +0100)]
Sync protocol_binary.h with the memcached repository
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
Brian Aker [Fri, 28 Nov 2008 18:08:23 +0000 (10:08 -0800)]
Added tag 0.25 for changeset
1ed3d51f323f
Brian Aker [Fri, 28 Nov 2008 18:08:14 +0000 (10:08 -0800)]
Fix for config to not be stored into filesystem.
Brian Aker [Fri, 28 Nov 2008 17:57:42 +0000 (09:57 -0800)]
Fix for bad disconnect during test run.
<brian@gir-3.local> [Fri, 28 Nov 2008 17:49:54 +0000 (09:49 -0800)]
Incomming fix from Chris
<brian@gir-3.local> [Fri, 21 Nov 2008 23:45:23 +0000 (15:45 -0800)]
Patch from evn
<brian@gir-3.local> [Mon, 17 Nov 2008 22:13:14 +0000 (17:13 -0500)]
Removing purge support for the time being.
Brian Aker [Sun, 16 Nov 2008 02:15:28 +0000 (18:15 -0800)]
Fix for most errors around non-block
Brian Aker [Sat, 15 Nov 2008 22:01:12 +0000 (14:01 -0800)]
Straighten up exection path
<brian@gir-3.local> [Sat, 15 Nov 2008 17:12:30 +0000 (12:12 -0500)]
Trying to remove dead branch
<brian@gir-3.local> [Sat, 15 Nov 2008 17:07:50 +0000 (12:07 -0500)]
Merge.
<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.
<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.
Yin Chen [Wed, 5 Nov 2008 09:25:57 +0000 (17:25 +0800)]
fix io_read bug
<brian@ubuntu> [Tue, 4 Nov 2008 03:50:38 +0000 (19:50 -0800)]
Fix make dist.
<brian@gir-3.local> [Mon, 3 Nov 2008 22:20:00 +0000 (03:50 +0530)]
Adding missing file
<brian@gir-3.local> [Mon, 3 Nov 2008 22:15:47 +0000 (03:45 +0530)]
Incomming code for additions in keys (see Changelog)
<brian@gir-3.local> [Mon, 3 Nov 2008 21:51:23 +0000 (03:21 +0530)]
Merge fixed from trond
Trond Norbye [Thu, 23 Oct 2008 16:34:26 +0000 (18:34 +0200)]
Search for pod2man during configure
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)
<brian@gir.tangent.org> [Thu, 16 Oct 2008 19:19:16 +0000 (12:19 -0700)]
Solaris Forte issue fix (inttype over stdint)
Brian Aker [Wed, 15 Oct 2008 05:24:24 +0000 (22:24 -0700)]
Saving fix for busy wait