awesomized/libmemcached
17 years agoPossible fix for problem where servaddr may not always be correctly inited.
Brian Aker [Fri, 16 Nov 2007 21:40:36 +0000 (13:40 -0800)] 
Possible fix for problem where servaddr may not always be correctly inited.

17 years agoAdded test for binary append (works as an example as well!)
Brian Aker [Thu, 15 Nov 2007 21:17:18 +0000 (13:17 -0800)] 
Added test for binary append (works as an example as well!)
Fixed issue with bad assert in debug build
Updated version

17 years agoMore tests, and new code for append/prepend.
Brian Aker [Thu, 15 Nov 2007 16:10:49 +0000 (08:10 -0800)] 
More tests, and new code for append/prepend.
Also work t make this a release.

17 years agoFlags fix found by Stuart Midgley
Brian Aker [Thu, 15 Nov 2007 02:05:09 +0000 (18:05 -0800)] 
Flags fix found by Stuart Midgley

17 years agoRemoved more then a handfull of memset() calls.
Brian Aker [Wed, 14 Nov 2007 07:46:52 +0000 (23:46 -0800)] 
Removed more then a handfull of memset() calls.
Also reworked multiget to not need to call malloc().

17 years agoRework of the server connect so that "hostname" lookup does not occur for
Brian Aker [Wed, 14 Nov 2007 05:03:08 +0000 (21:03 -0800)] 
Rework of the server connect so that "hostname" lookup does not occur for
each reconnect.

Some framework for UDP protocol added.

17 years agoTesting to make sure that partial reads do not break protocol (aka on active
Brian Aker [Tue, 13 Nov 2007 21:47:31 +0000 (13:47 -0800)] 
Testing to make sure that partial reads do not break protocol (aka on active
cursors).

17 years agoRefactor all code to go through memcached_do().
Brian Aker [Tue, 13 Nov 2007 21:31:32 +0000 (13:31 -0800)] 
Refactor all code to go through memcached_do().

AKA this removed a bunch of copy and paste. It will also allow me to make
commands "safer" in case of mid-cursor exection.

17 years agoAdding comments to memcached_mget() that you need to call fetch methods
Brian Aker [Tue, 13 Nov 2007 06:43:00 +0000 (22:43 -0800)] 
Adding comments to memcached_mget() that you need to call fetch methods
until all data is recieved. Found partial bug in quit() call with open data.

17 years agoRemoving memory issue/cleanup for threads in src/memslap.c
Brian Aker [Tue, 13 Nov 2007 03:58:46 +0000 (19:58 -0800)] 
Removing memory issue/cleanup for threads in src/memslap.c

17 years agoUpdated tests (including one possible failing test from Brian Moon)
Brian Aker [Mon, 12 Nov 2007 21:20:56 +0000 (13:20 -0800)] 
Updated tests (including one possible failing test from Brian Moon)

17 years agoFixed bug where zero length key was provided.
Brian Aker [Mon, 12 Nov 2007 08:44:43 +0000 (00:44 -0800)] 
Fixed bug where zero length key was provided.

17 years agoFixing increment and decrement to take a 64bit unsigned value.
Brian Aker [Mon, 12 Nov 2007 07:07:28 +0000 (23:07 -0800)] 
Fixing increment and decrement to take a 64bit unsigned value.

17 years agoUpdating server_st to keep client buffers per server.
Brian Aker [Fri, 9 Nov 2007 22:18:25 +0000 (14:18 -0800)] 
Updating server_st to keep client buffers per server.
This is ground work to allow more async efforts around protocol.

17 years agoAdding friendly note about how to contribute to project.
Brian Aker [Fri, 9 Nov 2007 21:21:40 +0000 (13:21 -0800)] 
Adding friendly note about how to contribute to project.

17 years agoFixed bug reported by Stuart Midgley about what happens when there are no
Brian Aker [Fri, 9 Nov 2007 18:11:09 +0000 (10:11 -0800)] 
Fixed bug reported by Stuart Midgley about what happens when there are no
servers and you try to set/get values.

17 years agoMerged in new generate tests.
Brian Aker [Fri, 9 Nov 2007 08:57:23 +0000 (00:57 -0800)] 
Merged in new generate tests.

17 years agoUpdating test cases to return true/false
Brian Aker [Fri, 9 Nov 2007 08:51:53 +0000 (00:51 -0800)] 
Updating test cases to return true/false

17 years agoMore tests.
<brian@gir.tangent.org> [Fri, 9 Nov 2007 04:10:42 +0000 (20:10 -0800)] 
More tests.

17 years agoClean up warning for 32bit
<brian@gir.local> [Tue, 6 Nov 2007 16:48:14 +0000 (08:48 -0800)] 
Clean up warning for 32bit

17 years agoBuild the spec file (aka I stop hand editing it).
Brian Aker [Mon, 5 Nov 2007 23:44:48 +0000 (15:44 -0800)] 
Build the spec file (aka I stop hand editing it).

17 years agoAdded tag 0.8 for changeset 0e18bfea2fef
Brian Aker [Mon, 5 Nov 2007 19:36:58 +0000 (11:36 -0800)] 
Added tag 0.8 for changeset 0e18bfea2fef

17 years agoFixup for release 0.8
Brian Aker [Mon, 5 Nov 2007 19:36:50 +0000 (11:36 -0800)] 
Fixup for release

17 years agoRefactored out actual test code from test.c
Brian Aker [Sun, 4 Nov 2007 06:51:05 +0000 (23:51 -0700)] 
Refactored out actual test code from test.c

17 years agofetch_result() implemented for memcached_result_st.
Brian Aker [Sun, 4 Nov 2007 01:53:21 +0000 (18:53 -0700)] 
fetch_result() implemented for memcached_result_st.

17 years agoRestructuring for new memcached_result_st.
Brian Aker [Sat, 3 Nov 2007 23:28:42 +0000 (16:28 -0700)] 
Restructuring for new memcached_result_st.

Found a bug where string might get allocated incorrectly.

17 years agoFixed 64bit issue in hash.
Brian Aker [Sat, 3 Nov 2007 19:37:55 +0000 (12:37 -0700)] 
Fixed 64bit issue in hash.
Extended string structure for eventual static strings.
Added result structure.

17 years agopkgconfig support done (need to write example)
Brian Aker [Thu, 1 Nov 2007 09:57:39 +0000 (02:57 -0700)] 
pkgconfig support done (need to write example)
wrote wrapper for freeing memcached_stat_st structures
moved my_errno to be chached_errno (aka removed conflict with MySQL)

17 years agoUpdated to A Cruz note (he worked on helping me get the CRC hash to match
Brian Aker [Wed, 31 Oct 2007 17:28:23 +0000 (10:28 -0700)] 
Updated to A Cruz note (he worked on helping me get the CRC hash to match
other adaptors).

17 years agoMore Hashing methods
Brian Aker [Wed, 31 Oct 2007 17:20:28 +0000 (10:20 -0700)] 
More Hashing methods

17 years agoUpdate to interface (modified to better support lots of hashing functions).
Brian Aker [Wed, 31 Oct 2007 07:44:20 +0000 (00:44 -0700)] 
Update to interface (modified to better support lots of hashing functions).

Yes.... I apologize now for making non-backwards compatible change. Few were
probably using MD5 though since it was slow, I don't think this will be an
issue.

17 years agoUpdated test output.
Brian Aker [Wed, 31 Oct 2007 00:43:50 +0000 (17:43 -0700)] 
Updated test output.
More tests.

17 years agoAdded support for UNIX sockets.
Brian Aker [Wed, 31 Oct 2007 00:36:40 +0000 (17:36 -0700)] 
Added support for UNIX sockets.

17 years agoAdding support for CRC Hashing
Brian Aker [Tue, 30 Oct 2007 18:31:25 +0000 (11:31 -0700)] 
Adding support for CRC Hashing

17 years agoAdded tag 0_7 for changeset 3a8499f79e65
Brian Aker [Tue, 30 Oct 2007 17:38:47 +0000 (10:38 -0700)] 
Added tag 0_7 for changeset 3a8499f79e65

17 years agoModified test to allow it to run on slow machines (aka it ran too long) 0.7 0_7
Brian Aker [Tue, 30 Oct 2007 17:04:32 +0000 (10:04 -0700)] 
Modified test to allow it to run on slow machines (aka it ran too long)

17 years agoCleanup for release
Brian Aker [Tue, 30 Oct 2007 16:26:14 +0000 (09:26 -0700)] 
Cleanup for release

17 years agoAdding new memcached_clone() function
<brian@gir> [Sun, 28 Oct 2007 00:47:43 +0000 (17:47 -0700)] 
Adding new memcached_clone() function

17 years agoRandomm dead code cleanup/spelling errors/made a variable static.
<brian@gir> [Sat, 27 Oct 2007 22:42:10 +0000 (15:42 -0700)] 
Randomm dead code cleanup/spelling errors/made a variable static.

17 years agoFixed return length issues.
<brian@gir.tangent.org> [Sat, 27 Oct 2007 02:08:04 +0000 (19:08 -0700)] 
Fixed return length issues.
Moved to using read() to see if I can trap problems reported for dead
memcached servers.

17 years agoEnabled all tests (they now all pass)
<brian@gir.local> [Fri, 26 Oct 2007 08:07:00 +0000 (01:07 -0700)] 
Enabled all tests (they now all pass)

17 years agoThis fixes the overflow size_t possible problem in the string functions (yes,
<brian@gir.local> [Fri, 26 Oct 2007 08:05:48 +0000 (01:05 -0700)] 
This fixes the overflow size_t possible problem in the string functions (yes,
not likely to ever happen).

17 years agoBranch merge
<brian@gir.local> [Fri, 26 Oct 2007 07:28:28 +0000 (00:28 -0700)] 
Branch merge

17 years agoRewrote test loop to remove copy/paste code.
<brian@gir.local> [Fri, 26 Oct 2007 07:26:36 +0000 (00:26 -0700)] 
Rewrote test loop to remove copy/paste code.
WATCHPOINT now uses stderr.

17 years agoFix warning.
Brian Aker [Thu, 25 Oct 2007 18:24:45 +0000 (11:24 -0700)] 
Fix warning.

17 years agoUpdating changelog
<brian@dhcpvisitor216236.slac.stanford.edu> [Thu, 25 Oct 2007 18:16:21 +0000 (11:16 -0700)] 
Updating changelog

17 years agoCleaning out asserts;
<brian@dhcpvisitor216236.slac.stanford.edu> [Thu, 25 Oct 2007 18:15:51 +0000 (11:15 -0700)] 
Cleaning out asserts;

17 years agoAdding debug rules
<brian@dhcpvisitor216236.slac.stanford.edu> [Thu, 25 Oct 2007 18:00:50 +0000 (11:00 -0700)] 
Adding debug rules

17 years agoUpdated to build on OSX (will now require updated autoconf)
<brian@dhcpvisitor216236.slac.stanford.edu> [Thu, 25 Oct 2007 18:00:04 +0000 (11:00 -0700)] 
Updated to build on OSX (will now require updated autoconf)
New --enable-debug option for configure
WATCHPOINT are now compiled out (so safe to leave in code).
Cleaned up case in connect where wrong answer might be sent.
Cleaned up warnings in code around variable which might not have been
initialized.
Fixed usert test 3 (aka it was not using memory correctly)

17 years agoUpdated Changelog (may do a release this week).
Brian Aker [Wed, 24 Oct 2007 07:52:08 +0000 (00:52 -0700)] 
Updated Changelog (may do a release this week).

Certainly is enough fixes :)

17 years agoImprovement in multi-get. It no longer builds strings and sends them. It now
Brian Aker [Wed, 24 Oct 2007 07:49:10 +0000 (00:49 -0700)] 
Improvement in multi-get. It no longer builds strings and sends them. It now
sends them as it builds them.

17 years agoRemoved the dead select code.
Brian Aker [Wed, 24 Oct 2007 07:34:49 +0000 (00:34 -0700)] 
Removed the dead select code.
Fixed testapp so that we can test just selections of tests.
Fixed issue in IO, where in non-blocking mode it was possible not to write
out a response (aka, we didn't properly flush buffers before exiting).

17 years agoEnabled user test
Brian Aker [Tue, 23 Oct 2007 23:42:45 +0000 (16:42 -0700)] 
Enabled user test

17 years agoAllocation fixes in string library (now we can run bigger tests!)
Brian Aker [Tue, 23 Oct 2007 23:41:49 +0000 (16:41 -0700)] 
Allocation fixes in string library (now we can run bigger tests!)

Still a bug somewhere in get I suspect... mainly because of lazy execution.

17 years agoObvious mistake in test case launch
Brian Aker [Sun, 21 Oct 2007 17:19:16 +0000 (10:19 -0700)] 
Obvious mistake in test case launch

17 years agoBig change, we use poll() now instead of select()
Brian Aker [Fri, 19 Oct 2007 22:18:10 +0000 (15:18 -0700)] 
Big change, we use poll() now instead of select()

1) It is faster.
2) I think this means bye bye to the random write failure.

Difference?

select():
Testing user_supplied_bug1                                       3.512 [ ok ]
Testing user_supplied_bug2                                       3.461 [ ok ]

poll():
Testing user_supplied_bug1                                       1.324 [ ok ]
Testing user_supplied_bug2                                       1.303 [ ok ]

This commit also update variables for next release.

17 years agoFinally tracked down the oddball valgrind warning that I could never figure
Brian Aker [Thu, 18 Oct 2007 05:42:05 +0000 (22:42 -0700)] 
Finally tracked down the oddball valgrind warning that I could never figure
out :)

The check for one particular safety check was wrong (though something in the
server would have to go wrong to trigger this error).

17 years agoFixed malloc() issues in test.
Brian Aker [Thu, 18 Oct 2007 04:44:36 +0000 (21:44 -0700)] 
Fixed malloc() issues in test.
Refactored memcached_get() (looks to be around 15% faster)

17 years agoTest from Cal (get to go along with his set)
Brian Aker [Thu, 18 Oct 2007 04:01:10 +0000 (21:01 -0700)] 
Test from Cal (get to go along with his set)

17 years agoFix for OSX
Brian Aker [Wed, 17 Oct 2007 23:05:24 +0000 (16:05 -0700)] 
Fix for OSX

17 years agoUpdates for RPM
Brian Aker [Wed, 17 Oct 2007 16:00:41 +0000 (09:00 -0700)] 
Updates for RPM

17 years agoUpdating changelon (put date on it)
Brian Aker [Wed, 17 Oct 2007 15:43:10 +0000 (08:43 -0700)] 
Updating changelon (put date on it)

17 years agoNull merge
Brian Aker [Wed, 17 Oct 2007 15:40:09 +0000 (08:40 -0700)] 
Null merge

17 years agoWe keep having problems with it being this large so for release I am
Brian Aker [Wed, 17 Oct 2007 15:39:38 +0000 (08:39 -0700)] 
We keep having problems with it being this large so for release I am
lowering it.

17 years agocommand line error reporting, use my_errno
Mark Atwood [Tue, 16 Oct 2007 21:03:36 +0000 (14:03 -0700)] 
command line error reporting, use my_errno

17 years agoNew "fast help" for new hg/web/bleeding edge users.
Brian Aker [Tue, 16 Oct 2007 16:26:01 +0000 (09:26 -0700)] 
New "fast help" for new hg/web/bleeding edge users.

17 years agoUpdating for release
Brian Aker [Tue, 16 Oct 2007 10:46:14 +0000 (03:46 -0700)] 
Updating for release

17 years agoSet recv/send sockket sizes.
Brian Aker [Tue, 16 Oct 2007 10:14:51 +0000 (03:14 -0700)] 
Set recv/send sockket sizes.

Clarrified the memcached_behavior_set will reconnect sockets.

All test cases pass.

17 years agoMade string class private
Brian Aker [Tue, 16 Oct 2007 09:29:30 +0000 (02:29 -0700)] 
Made string class private

17 years agoCleaning up #include headers so that we don't export much
Brian Aker [Tue, 16 Oct 2007 09:27:57 +0000 (02:27 -0700)] 
Cleaning up #include headers so that we don't export much

17 years agoremove autotools generated INSTALL from reposatory
Mark Atwood [Mon, 15 Oct 2007 17:59:10 +0000 (10:59 -0700)] 
remove autotools generated INSTALL from reposatory

17 years agomake rules for man pages now set proper headers and footers
Mark Atwood [Sun, 14 Oct 2007 21:00:13 +0000 (14:00 -0700)] 
make rules for man pages now set proper headers and footers

17 years agomerge in brian's change to "Update for async delete"
Mark Atwood [Sun, 14 Oct 2007 20:29:23 +0000 (13:29 -0700)] 
merge in brian's change to "Update for async delete"

17 years agoMany fixes to the POD documentation
Mark Atwood [Sun, 14 Oct 2007 20:28:09 +0000 (13:28 -0700)] 
Many fixes to the POD documentation

17 years agoUpdate for async delete.
Brian Aker [Sun, 14 Oct 2007 01:46:45 +0000 (18:46 -0700)] 
Update for async delete.

17 years agoUpdating makefile to ship pod
<brian@gir> [Sat, 13 Oct 2007 23:16:12 +0000 (16:16 -0700)] 
Updating makefile to ship pod

17 years agoHard to believe I documented the entire thing... this is a first.
<brian@gir> [Sat, 13 Oct 2007 23:04:08 +0000 (16:04 -0700)] 
Hard to believe I documented the entire thing... this is a first.

We should thank Remedy Tea in Capital Hill who let me drink three pots of
their green tea (which is the only reason I got through all of this).

17 years agoCreated a bigger buffer for write/read.
Brian Aker [Sat, 13 Oct 2007 17:26:52 +0000 (10:26 -0700)] 
Created a bigger buffer for write/read.
set are now more pipelined then perform (roughly 4X faster according to done
in users).

17 years agoRefactor test system to give me times on calling tests (frankly I still need
Brian Aker [Sat, 13 Oct 2007 17:13:30 +0000 (10:13 -0700)] 
Refactor test system to give me times on calling tests (frankly I still need
to refactor the test system a bit more...)

17 years agoRemoved explicit flush from memcached_storage()
Brian Aker [Sat, 13 Oct 2007 07:47:57 +0000 (00:47 -0700)] 
Removed explicit flush from memcached_storage()

17 years agoExtended test system to pin point specific test groups
Brian Aker [Sat, 13 Oct 2007 00:25:26 +0000 (17:25 -0700)] 
Extended test system to pin point specific test groups

17 years agoUpdates to clean server structure.
Brian Aker [Sat, 13 Oct 2007 00:13:33 +0000 (17:13 -0700)] 
Updates to clean server structure.
Addition for wildcard tests.
Fix for multi, aka three, hosts for key reads.

17 years agoThis is a rewrite of some of the IO code to handle larger loads of set data
Brian Aker [Fri, 12 Oct 2007 08:46:27 +0000 (01:46 -0700)] 
This is a rewrite of some of the IO code to handle larger loads of set data
on concurrent insert with non-blocking IO.

A bug was also uncovered where the read bufffers for multiple hosts were not
being read (all code has been refactored for that now).

One user contributed test case has been added.

17 years agoUpdating version numbers
Brian Aker [Thu, 11 Oct 2007 21:56:24 +0000 (14:56 -0700)] 
Updating version numbers

17 years agoFixed strings returned by get to be null terminated (request by Cal
Brian Aker [Thu, 11 Oct 2007 21:55:37 +0000 (14:55 -0700)] 
Fixed strings returned by get to be null terminated (request by Cal
Heldenbrand)

17 years agoFixed for bad call in memcached_behavior.c
Brian Aker [Thu, 11 Oct 2007 21:49:30 +0000 (14:49 -0700)] 
Fixed for bad call in memcached_behavior.c

17 years agoAdded tag 0.5 for changeset 76a1ddcb86f3
Brian Aker [Tue, 9 Oct 2007 07:24:59 +0000 (00:24 -0700)] 
Added tag 0.5 for changeset 76a1ddcb86f3

17 years agoFinal data on version 0.5 0.5
Brian Aker [Tue, 9 Oct 2007 07:24:54 +0000 (00:24 -0700)] 
Final data on version 0.5

17 years agoPutting in revision number for new rpm
Brian Aker [Mon, 8 Oct 2007 20:45:19 +0000 (13:45 -0700)] 
Putting in revision number for new rpm

17 years agoFix for bug in behavior.
Brian Aker [Mon, 8 Oct 2007 20:44:31 +0000 (13:44 -0700)] 
Fix for bug in behavior.

Added tests for most of the command line apps (not much of a test... but it
is a start)

17 years agoUpdated for help commands (and a little bit on ketama)
Brian Aker [Mon, 8 Oct 2007 19:57:07 +0000 (12:57 -0700)] 
Updated for help commands (and a little bit on ketama)

17 years agoCleanup of behavior (refactored...)
Brian Aker [Sun, 7 Oct 2007 23:47:09 +0000 (16:47 -0700)] 
Cleanup of behavior (refactored...)

I am still using two enum... why? Trying to keep people fromm touching the
main interface. I don't have to do this though....

17 years agoUpdating TODO list
Brian Aker [Sun, 7 Oct 2007 23:12:56 +0000 (16:12 -0700)] 
Updating TODO list

17 years agoRewrote internal connect function to do by demand (aka only open up
Brian Aker [Sun, 7 Oct 2007 23:09:57 +0000 (16:09 -0700)] 
Rewrote internal connect function to do by demand (aka only open up
connections as we need them).

Found a bug in stats where we were hardcoding the serer key (which
ended up a a hang when requesting stats).

17 years agoUpdated return code from memcached_response to send proper return to
Brian Aker [Sun, 7 Oct 2007 21:39:58 +0000 (14:39 -0700)] 
Updated return code from memcached_response to send proper return to
memcached_stats().

Fixed memcached_stat to report accurate values.

17 years agoFinished up memcached_behavior_set/get() method. Tests and examples found in
Brian Aker [Sun, 7 Oct 2007 20:43:31 +0000 (13:43 -0700)] 
Finished up memcached_behavior_set/get() method. Tests and examples found in
test.c under behavior test.

17 years agoAdded MD5 hashing scheme. Refactored code to allow for more hashing types.
Brian Aker [Fri, 5 Oct 2007 04:37:44 +0000 (21:37 -0700)] 
Added MD5 hashing scheme. Refactored code to allow for more hashing types.

17 years agoFixed test case output
Brian Aker [Fri, 5 Oct 2007 04:04:17 +0000 (21:04 -0700)] 
Fixed test case output
Remove unwanted WATCHPOINT
Started work for md5 hash'ing
Move around a couple of defines to keep people from using them

17 years agoNull
Brian Aker [Fri, 5 Oct 2007 03:47:50 +0000 (20:47 -0700)] 
Null

17 years agoFound bug in multi get where key size was not being calculated.
Brian Aker [Fri, 5 Oct 2007 03:47:17 +0000 (20:47 -0700)] 
Found bug in multi get where key size was not being calculated.

All mem commands can now used environmental variable MEMCACHED_SERVERS to
get a list of servers they should be commincating with.

server parse string method was removed from utilities and added to main
library. Its a little to handy not to have it in the library :)