Skip to content

Instantly share code, notes, and snippets.

@dustin
Created March 12, 2009 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustin/78357 to your computer and use it in GitHub Desktop.
Save dustin/78357 to your computer and use it in GitHub Desktop.
commit e703ce4cb0b0ee8034ba9c2331877a97ffb6d11a
Author: Dustin Sallings <dustin@spy.net>
Date: Mon Jan 19 23:45:38 2009 +0000
Build fixes for ubuntu 8.10/64.
gcc seems to have been wise to all of the syscalls being cast to void
to avoid doing real result checking in unlikely errors.
commit 5a44468708aa09fcec469557258a5d69a88811ca
Author: Evan Klitzke <evan@eklitzke.org>
Date: Sun Mar 1 17:18:03 2009 -0800
Use AI_ADDRCONFIG more selectively.
This makes running on Linux when disconnected possible.
Tests still fail when using the -l option to specify a binding address
while offline. This is probably quite unlikely if it weren't for the
first test.
commit 01f377b8c730a02f8efeda63d4dac1803e950fde
Author: Dustin Sallings <dustin@spy.net>
Date: Wed Mar 11 12:48:46 2009 -0700
Slow down the add test a bit.
Solaris with dtrace enabled was rather consistently failing this.
Expiration times around 1 can get dropped due to memcached clock
resolution.
commit 6973dd54f00aede1ee859f5f312809c80a7b61ac
Author: Dustin Sallings <dustin@spy.net>
Date: Wed Mar 11 11:31:17 2009 -0700
Shrink lines in protocol.txt to fit within 80 columns.
Also wrote a new test that will ensure that that never happens again.
commit a293b69334c4f9fdfe25f8a7464fc0dfc04ee773
Author: Dustin Sallings <dustin@spy.net>
Date: Wed Mar 11 00:18:57 2009 -0700
Added an add behavior test.
Someone in IRC reported this not working one day. Likely a failure on
the client side, but it's good to ensure it for us in a test case.
commit e10a96345fd1f17287bbfbcb992a0bd4ab491c1e
Author: Dustin Sallings <dustin@spy.net>
Date: Sun Mar 1 10:46:09 2009 -0800
Isolate the first server in startup test so it dies sooner (bug 20).
Apparently on some version of Linux I don't have, this causes the test
to hang for a while as gcov attempts to compute and write out the
results from two coverage runs concurrently.
It's best to clean up things as quickly as possible in the general
case, so this should be done regardless.
commit 19856aa075ed804a251e67fb5bacf0e0fd63e2c5
Author: Dustin Sallings <dustin@spy.net>
Date: Thu Feb 26 08:49:32 2009 -0800
Fix for bug21.
Some strange signness handling around decr caused values that would be
signed 64-bit numbers to get dropped to zero.
commit ef5fe8702a46f41176c9b96a7d583877d8a3ab63
Author: Dustin Sallings <dustin@spy.net>
Date: Thu Feb 12 18:36:01 2009 -0800
Test cachedump on text protocol.
commit 25eb0c170e19da0d926abfa842e2181056eb929f
Author: Dustin Sallings <dustin@spy.net>
Date: Wed Feb 11 18:03:14 2009 -0800
Update CAS on non-replace incr/decr.
This fixes a problem reported as bug 15 where incr and decr do not
change CAS values when they aren't completely replacing the item
(which is the typical case).
http://code.google.com/p/memcached/issues/detail?id=15
commit 3787039e257f7639657e02bb7638554f68353592
Author: Dustin Sallings <dustin@spy.net>
Date: Thu Mar 12 16:30:58 2009 -0700
Ensure there are always N+1 threads so udp dispatch works.
If compiled with threads disabled, there would be too few threads to
run udp and bad stuff would happen.
commit 3f2c0fd1d8e95f371d7f9240ba62750c18457c8c
Author: dormando <dormando@rydia.net>
Date: Sat Sep 6 16:02:07 2008 -0700
Update doc/protocol.txt for the new evicted_time stat.
commit 469915d9dc8615ec33126b3452f758a19825494c
Author: dormando <dormando@rydia.net>
Date: Sat Sep 6 15:52:08 2008 -0700
Update changelog, common contributors.
I'm missing some contributors now. Have to look up your address probably. Please bitch if you've tossed more than a couple small patches and want to be included.
commit 28d27b22c1c57906cb3cded87e44a4cf28866bca
Author: dormando <dormando@rydia.net>
Date: Sat Sep 6 15:35:21 2008 -0700
Display final errno status on the various listen failures.
"failed to listen on TCP port 11211" is nice, but "Address already in use" is more nice.
I have a feeling this isn't 100% correct given the ipv6 code, but either it's good enough or someone else will have to outpatch me.
commit 04319dddabaa06d15407ab6f793b160d3b1c5edb
Author: dormando <dormando@rydia.net>
Date: Sat Sep 6 15:14:41 2008 -0700
Remove managed instance code. Extra options confuse newbies.
We should come back and do this right, probably built on top of the binary protocol and SE stuff.
commit 810c13bceed2d2e96449f285dc53913861cc4c0a
Author: Brian Aker <brian@tangent.org>
Date: Sat Sep 6 02:12:23 2008 -0700
Do the right thing if someone has a broken IPV6 stack which is only IPV6.
commit 18474d58b4429d9744c3c516c35206edf10c1351
Author: Brian Aker <brian@tangent.org>
Date: Sat Sep 6 02:08:34 2008 -0700
Warning messages generated if setsockopt() does not pass.
commit 4ab6df575e4d2a296c87dec5e6f93fb4dedf5556
Author: Brian Aker <brian@tangent.org>
Date: Sat Sep 6 02:02:42 2008 -0700
Fix a couple random indent issues.
couple nitpicks from dormando.
commit 6caa28baacde4db97420d10b51878281e0a34210
Author: Brian Aker <brian@tangent.org>
Date: Sat Sep 6 01:46:07 2008 -0700
UDP/TCP can be disabled by setting their port to zero.
modified by dormando a little.
while tempting, don't do this:
memcached -U 0 -p 0
... and report it to the list ;)
commit b25753691c6c70ad0e5569188bd8a0566fba3a95
Author: Ricky Zhou <rickyz@cmu.edu>
Date: Sun Aug 31 22:45:03 2008 -0700
Use zeroed out thread structures via calloc.
commit c2da04a70f773ef3c2756d882fbbee54675cc6c6
Author: Jonathan Bastien-Filiatrault <joe@x2a.org>
Date: Sun Aug 31 22:38:45 2008 -0700
Correct typo in configure script.
commit afdf5a93c0103392b8ff00186f8dffcb00c77542
Author: dormando <dormando@rydia.net>
Date: Sun Aug 31 15:55:37 2008 -0700
Fix thread DTrace probe.
Trond pointed out that I missed fixing the thread dtrace probe *directly above* the other line I fixed. Har har oops.
commit a99f0935cda17c7998a5b46dd7fef9205b596587
Author: dormando <dormando@rydia.net>
Date: Sat Aug 30 23:05:08 2008 -0700
Note the last accessed time of an object when evicted.
If you're really clever and set all of your items to never expire, your evictions stat will skyrocket even when you have plenty of memory left. This added stat to the stats items command gives an extra window into how bad an eviction was without expressly looking at it.
commit 7417af47945e94407380c441eaa27715886cfe8e
Author: dormando <dormando@rydia.net>
Date: Sat Aug 30 19:22:52 2008 -0700
Duhr. Not a thread specific command.
commit ae9557f4a0a2b2979aede9211eb34f9765f43af9
Author: dormando <dormando@rydia.net>
Date: Sat Aug 30 19:15:24 2008 -0700
Prevent starvation by busy threads.
Patch originally from the Facebook crew, cleaned and separated by dormando.
A bulk-loading thread could stick in the read loop for a long time without yielding to other connections. This gives a configurable limit to how many commands to process before the next connection is checked.
commit 02ce111b0ec28d4c87fe6a3a6111ad79fbd9f599
Author: dormando <dormando@rydia.net>
Date: Sat Aug 30 19:12:09 2008 -0700
Use a dedicated accept/dispatch thread.
Patch originally from the Facebook crew, cleaned up and split by dormando.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment