xref: /memcached-1.4.29/ChangeLog (revision 0cbcacf8)
12009-03-31
2
3	* Feature:  -b option for configuring backlog
4
5	* Feature:  stats settings
6
7	* Fix: binary stat alignment bug (bug26)
8
9	* Fix: buffer overflow in stats (bug27)
10
11	* Fix: recycle memory more aggressively (bug14)
12
13	* Fix: incr validation (bug31)
14
15	* Fix: 64-bit incr/decr delta problem (bug21)
16
17	* Fix: Ascii UDP set (bug36)
18
19	* Fix: stats slabs' used chunks (bug29)
20
21	* Fix: stats reset resetting more (bug22)
22
23	* Misc: More tests, documentation, cleanliness (godliness)
24
25	* Stable merge (stats, debuggability, listen bugs)
26
272009-03-11
28
29	* Protocol:  Binary complete (Dustin, Trond, Toru, etc...)
30
31	* Performance:  improvements from facebook (Dormando)
32
33	* Performance:  per-thread stats (Trond)
34
35	* Performance:  Hash expansion in its own thread (Trond)
36
37	* Stats:  Lots of new stats (Dustin)
38
39	* Bug fixes (various)
40
41	See the 1.3.2 release notes or revision control for more detail.
42
432008-09-06
44       * Display error status on listen failures (Dormando)
45
46       * Remove managed instance code. Incomplete/etc. (Dormando)
47
48          * Handle broken IPV6 stacks better (Brian Aker)
49
50          * Generate warnings on setsockopt() failures (Brian Aker)
51
52          * Fix some indentation issues (Brian Aker)
53
54          * UDP/TCP can be disabled by setting their port to zero (Brian Aker)
55
56          * Zero out libevent thread structures before use (Ricky Zhou)
57
58          * New stat: Last accessed time for last evicted item per slab class.
59            (Dormando)
60
61          * Use a dedicated socket accept thread (Facebook)
62
63          * Add -R option. Limit the number of requests processed by a connection
64            at once. Prevents starving other threads if bulk loading. (Facebook)
65
662008-07-29 [Version 1.2.6 released]
67
682008-07-24 [Version 1.2.6-rc1 released]
69
70       * Add support for newer automake (Facebook)
71
72       * DTrace support for Solaris/etc (Trond Norbye)
73
74       * LRU tests (Steve Yen)
75
76       * Handle negative length items properly (Dormando)
77
78       * Don't leave stale data after failed set attempts (Dormando)
79
80       * Fix refcount leaks, which would result in OOM's on all sets
81	       (Dormando)
82
83       * Fix buffer overruns (Dustin Sallings, Tomash Brechko)
84
85       * Fix memory corruption with CAS (Dustin Sallings)
86
872008-06-11
88
89       * Fix -k to work with -d. (reported by Gary Zhu)
90
912008-03-02 [Version 1.2.5-rc1 released]
92
93       * Add per-item-class tracking of evictions and OOM errors (dormando)
94
95       * Optimize item_alloc() a little (dormando)
96
97       * Give 'SERVER_ERROR out of memory' errors more context (dormando)
98
99       * Enable usage of large memory pages under solaris
100         ([email protected])
101
102       * Enable UDP by default, clean up server socket code
103         ([email protected])
104
105       * 'noreply' support (Tomash Brechko)
106
107       * IPv6 support, and IPv6 multi-interface support ([email protected])
108
109       * Add compiler options for Sun Studio compilers with --enable-threads
110	     ([email protected])
111
112       * Add --enable-64bit for mulitarget platforms ([email protected])
113
114       * Use gettimeofday(2) instead of time(2).
115
116       * Make -k option work (Tomash Brechko)
117
118	   * Fix chunk slab alignment ([email protected])
119
1202007-12-06 [Version 1.2.4 released]
121
1222007-12-05
123
124       * Fix compilation on panther (JS and Dormando)
125
126	   * More CAS tests (Chris Goffinet)
127
128	   * Final fixes for all 1.2.4 features are in, -rc2 sent out.
129
1302007-11-19 [Version 1.2.4-rc1 released]
131
1322007-11-19  Dormando <[email protected]>
133
134       * Patch series from Tomash Brechko <[email protected]>:
135         Minor fixes and optimisations.
136
137       * Patches from Chris, Dustin, and Dormando to fix CAS.
138
139       * Prepping for 1.2.4 release.
140
1412007-11-13  Dormando <[email protected]>
142
143	* Adjusted patch from js <[email protected]>: Compile on OS X Panther
144	  and earlier.
145
1462007-11-12  Steven Grimm  <[email protected]>
147
148	* Patch from Tomash Brechko <[email protected]>: Always send
149	  "SERVER_ERROR out of memory" when memory exhausted.
150
1512007-10-15  Paul Lindner  <[email protected]>
152
153	* Patch from David Bremner <[email protected]> that implements
154	  a new option "-a" which takes an octal permission mask
155	  (like chmod) sets the permissions on the unix domain socket
156	  (specified by "-s").
157
1582007-10-03 Paul Lindner <[email protected]>
159	* Incorporate "cas" operation developed by Dustin
160	  Sallings <[email protected]> This change allows you
161	  to do atomic changes to an existing key.
162
163	* Fix for stats.evictions not incrementing
164	  when exptime == 0 items are kicked off the cache.
165	  from Jean-Francois BUSTARRET <[email protected]>.
166
167	* Fix for do_item_cachedump() which was returning
168	  an incorrect timestamp.
169
170	* Switch to unsigned 64-bit increment/decrement counters
171	  from Evan Miller and Dustin Sallings.
172
173	* Add append command support written by Filipe Laborde.
174	  Thread safe version plus prepend command from Maxim Dounin
175	  <[email protected]>
176
177	* The memcached-tool script can now display stats.  Patch
178	  provided by Dan Christian <[email protected]>
179
180	* Fix for Unix Domain sockets on FreeBSD
181	  FreeBSD's sendmsg() requires msg_name in msghdr structure
182	  to be NULL if not used, setting msg_namelen to 0 isn't enough.
183	  Patch from Maxim Dounin <[email protected]>
184
1852007-08-21 Paul Lindner <[email protected]>
186	* Incorporate incrememnt patch from Evan Miller
187	  <[email protected]> to define increment overflow
188	  behavior.
189
1902007-08-07 Leon Brocard <[email protected]>
191	* Bring the memcached.1 manpage up to date
192
1932007-08-06 Paul Lindner <[email protected]>
194	* Fix crash when using -P and -d flags on x86_64
195	  with latest libevent release.
196
1972007-07-08  Steven Grimm  <[email protected]>
198
199	* Item stats commands weren't thread-safe; wrap them with locks
200	  when compiled in multithreaded mode.
201	* The "stats items" command now works again; it broke with the
202	  introduction of the powers-of-N chunk size change.
203
2042007-07-06 [Version 1.2.3 released]
205
2062007-06-19  Paul Lindner  <[email protected]>
207
208	* Solaris portability fixes from Trond Norbye
209
2102007-05-29  Paul Lindner  <[email protected]>
211
212	* Properly document evictions statistic value
213
2142007-05-10  Paul Lindner  <[email protected]>
215
216	* Flesh out tests for unix domain sockets and binary data.
217	* Update rpm spec file to run tests
218
2192007-05-07  Paul Lindner  <[email protected]>
220
221	* Fix compilation bug on freebsd 6.x (and maybe others)
222	* Update RPM spec file per redhat bugzilla #238994
223	* Move unistd.h to memcached.h to get rid of warnings
224	* Add string.h to thread.c to get correctly prototyped strerror()
225
2262007-05-04  Paul Lindner  <[email protected]>
227
228	* Add fedora/redhat style init script and RPM spec file
229
2302007-05-12 [Version 1.2.2 released]
231
2322007-04-16  Steven Grimm  <[email protected]>
233
234	* Command tokenizer performance and cleanliness improvement.
235	  Patch contributed by Paolo Borelli <[email protected]>.
236
2372007-04-16  Paul Lindner  <[email protected]>
238
239	* Add notes to README about MacOS, libevent and kqueue.
240
241	* Windows Patch integration -- part 1, warnings elimination.
242
2432007-04-12  Paul Lindner  <[email protected]>
244
245	* Allow changes to the verbosity level of the server with a new
246	  "verbosity" command and some compiler cleanups.
247          Patch contributed by Paolo Borelli <[email protected]>.
248
2492007-04-08  Paul Lindner  <[email protected]>
250
251	* Add cleanup patch from "Tim Yardley" <[email protected]> to
252	  clean up source spacing issues, fix -Wall warnings, add some
253	  null checks, adds asserts at the top of each function for any
254	  use of conn *c without checking to see if c is NULL first.
255
256        * Also adjust clean-whitespace.pl to clean *.ac files.  Add
257          script to test-suite to test for tabs.
258
2592007-04-04  Paul Lindner  <[email protected]>
260
261	* Add clarification of flush_all in the protocol docs
262	  from Elizabeth Mattijsen <[email protected]>
263
2642007-03-31  Paul Lindner  <[email protected]>
265
266	* Add patch from Eli Bingham <[email protected]> to
267	  re-enable the -n switch to memcached.
268
2692007-03-20  Paul Lindner  <[email protected]>
270	* Add patch to collect eviction statistics from
271          Jean-Francois BUSTARRET <[email protected]>.
272
273        * Updated docs, added new test cases for t/stats.t
274
2752007-03-18  Paul Lindner  <[email protected]>
276
277	* Add more test cases using larger buffer sizes up to and greater
278	  than 1MB.
279
280	* Remove unused parameter to item_size_ok()
281
282	* Use a single printf() in usage()
283
284	* Add a failing test for conforming with maximum connections.
285
2862007-03-17
287	* crash fix from Thomas van Gulick <[email protected]> in
288	  conn_shrink(), passing &ptr, instead of ptr to realloc().
289
2902007-03-05  Paul Lindner  <[email protected]>
291	* Fix a number of places where (s)printf calls were using unsigned
292	  or signed formats that did not match their arguments.
293
294	* Add support for stdbool.h and stdint.h to use the bool and
295	  uint8_t types.
296
297	* Major refactoring - move API calls for assoc/items/slabs to
298	  their own individual header files.  Add apropriate const and
299	  static declarations as appropriate.
300
301	* Avoid type-punning.  Do a more efficient realloc inside the
302	  conn_shrink routine.
303
304        * Fix overflow bug where uninitialized access to slabclass caused
305	  size-0 mallocs during slab preallocation.
306
307	* Use EXIT_SUCCESS/EXIT_FAILURE constants.
308
309	* Convert some sprintf calls to snprintf to protect against
310	  buffer overflows.
311
312	* Explicitly compare against NULL or zero in many places.
313
3142007-03-05
315	* Steven Grimm <[email protected]>: Per-object-type stats collection
316	  support. Specify the object type delimiter with the -D command line
317	  option. Turn stats gathering on and off with "stats detail on" and
318	  "stats detail off". Dump the per-object-type details with
319	  "stats detail dump".
320
3212007-03-01
322	* Steven Grimm <[email protected]>: Fix an off-by-one error in the
323	  multithreaded version's message passing code.
324
3252006-12-23
326	* fix expirations of items set with absolute expiration times in
327	  the past, before the server's start time.  bug was introduced in
328	  1.2.0 with rel_time_t.  Thanks to Adam Dixon
329	  <[email protected]> for the bug report and test case!
330
3312006-11-26
332	* Steven Grimm <[email protected]>: Performance improvements:
333
334	  Dynamic sizing of hashtable to reduce collisions on very large
335	  caches and conserve memory on small caches.
336
337	  Only reposition items in the LRU queue once a minute, to reduce
338	  overhead of accessing extremely frequently-used items.
339
340	  Stop listening for new connections until an existing one closes
341	  if we run out of available file descriptors.
342
343	  Command parser refactoring: Add a single-pass tokenizer to cut
344	  down on string scanning.  Split the command processing into
345	  separate functions for easier profiling and better readability.
346	  Pass key lengths along with the keys in all API functions that
347	  need keys, to avoid needing to call strlen() repeatedly.
348
3492006-11-25
350	* Steve Peters <[email protected]>: OpenBSD has a malloc.h,
351	but warns to use stdlib.h instead
352
3532006-11-22
354	* Steven Grimm <[email protected]>: Add support for multithreaded
355	  execution. Run configure with "--enable-threads" to enable. See
356	  doc/threads.txt for details.
357
3582006-11-13
359	* Iain Wade <[email protected]>: Fix for UDP responses on non-"get"
360	 commands.
361
3622006-10-15
363	* Steven Grimm <[email protected]>: Dynamic sizing of hashtable to
364	  reduce collisions on very large caches and conserve memory on
365	  small caches.
366
3672006-10-13
368	* Steven Grimm <[email protected]>: New faster hash function.
369
3702006-09-20
371
372	* don't listen on UDP by default; more clear message when UDP port in use
373
3742006-09-09
375	* release 1.2.0 (along with 1.1.13, which is the more tested branch)
376
377	nobody has run 1.2.0 in production, to my knowledge.  facebook has run
378	their pre-merge-with-trunk version, but bugs were discovered (and fixed)
379	after the merge.  there might be more.  you've been warned.  :)
380
3812006-09-04
382	* improved autoconf libevent detection, from the Tor project.
383
3842006-09-03
385	* test suite and lot of expiration, delete, flush_all, etc corner
386	  case bugs fixed (Brad Fitzpatrick)
387
3882006-09-02
389	* Nathan Neulinger <[email protected]>: fix breakage in expiration code
390	  causing expiration times to not be processed correctly.
391
3922006-08-21
393	* Nathan Neulinger <[email protected]>: fix incompatabilities with
394	  unix domain socket support and the UDP code and clean up stale
395	  sockets
396
3972006-08-20
398	* Nathan Neulinger <[email protected]>: unix domain socket support
399
4002006-05-03
401	* Steven Grimm <[email protected]>:  big bunch of changes:
402	  big CPU reduction work, UDP-based interface, increased memory
403	  efficiency.  (intertwined patch, committed all together)
404	  <http://lists.danga.com/pipermail/memcached/2006-May/002164.html>
405	  or see svn commit logs
406
4072006-04-30
408	* River Tarnell:  autoconf work for Solaris 10.  Brad:
409	merge and verify it works on Nexenta.
410
4112006-03-04
412	* avva: bucket/generation patch (old, but Brad's just finally
413	committing it)
414
4152006-01-01
416	* Brad Fitzpatrick <[email protected]>:  allocate 1 slab per class
417	on start-up, to avoid confusing users with out-of-memory errors
418	later.  this is 18 MB of allocation on start, unless max memory
419	allowed with -m is lower, in which case only the smaller slab
420	classes are allocated.
421
4222005-08-09
423	* Elizabeth Mattijsen <[email protected]>: needed a way to flush all
424	memcached backend servers, but not at exactly the same time (to
425	reduce load peaks), I've added some simple functionality to the
426	memcached protocol in the "flush_all" command that allows you to
427	specify a time at which the flush will actually occur (instead of
428	always at the moment the "flush_all" command is received).
429
4302005-05-25
431	* patch from Peter van Dijk <[email protected]> to make
432	  stderr unbuffered, for running under daemontools
433
4342005-04-04
435	* patch from Don MacAskill <[email protected]> 'flush_all' doesn't
436	seem to work properly.  Basically, if you try to add a key which
437	is present, but expired, the store fails but the old key is no
438	longer expired.
439
440	* release 1.1.12
441
4422005-01-14
443	* Date: Thu, 18 Nov 2004 15:25:59 -0600
444	  From: David Phillips <[email protected]>
445	Here is a patch to configure.ac and Makefile.am to put the man page in
446	the correct location.  Trying to install the man page from a
447	subdirectory results in the subdirectory being used in the install
448	path (it tries to install to doc/memcached.1).  This is the correct
449	thing to  do:
450
451	- create a Makefile.am in the doc directory that installs the man page
452	  with man_MANS
453	- modify Makefile.am in the base directory to reference the doc
454  	  directory using SUBDIRS
455	- modify the AC_CONFIG_FILES macro in configure.ac to output the
456	  Makefile in doc
457
458
4592005-01-14
460	* pidfile saving support from Lisa Seelye <[email protected]>, sent
461	  Jan 13, 2005
462
4632005-01-14
464	* don't delete libevent events that haven't been added (the deltimer)
465	  patch from Ted Schundler <[email protected]>
466
4672004-12-10
468	* document -M and -r in manpage (Doug Porter <[email protected]>)
469
4702004-07-22
471	* fix buffer overflow in items.c with 250 byte keys along with
472	  other info on the same line going into a 256 byte char[].
473	  thanks to Andrei Nigmatulin <[email protected]>
474
4752004-06-15
476	* immediate deletes weren't being unlinked a few seconds,
477	  preventing "add" commands to the same key in that time period.
478	  thanks to Michael Alan Dorman <[email protected]> for the
479	  bug report and demo script.
480
4812004-04-30
482	* released 1.1.11
483
4842004-04-24
485	* Avva: Add a new command line option: -r , to maximize core file
486	limit.
487
4882004-03-31
489	* Avva: Use getrlimit and setrlimit to set limits for number of
490	simultaneously open file descriptors. Get the current limits and
491	try to raise them if they're not enough for the specified (or the
492	default) setting of max connections.
493
4942004-02-24
495	* Adds a '-M' flag to turn off tossing items from the cache.
496	  (Jason Titus <[email protected]>)
497
4982004-02-19 (Evan)
499	* Install manpage on "make install", etc.
500
5012003-12-30 (Brad)
502	* remove static build stuff.  interferes with PAM setuid stuff
503	  and was only included as a possible fix with the old memory
504	  allocator.  really shouldn't make a difference.
505	* add Jay Bonci's Debian scripts and manpage
506	* release version 1.1.10
507
5082003-12-01 (Avva)
509	* New command: flush_all, causes all existing items to
510	  be invalidated immediately (without deleting them from
511	  memory, merely causing memcached to no longer return them).
5122003-10-23
513	* Shift init code around to fix daemon mode on FreeBSD,
514	* and drop root only after creating the server socket (to
515	* allow the use of privileged ports)
516	* version 1.1.10pre
517
5182003-10-09
519	* BSD compile fixes from Ryan T. Dean
520	* version 1.1.9
521
5222003-09-29
523	* ignore SIGPIPE at start instead of crashing in rare cases it
524	  comes up.  no other code had to be modified, since everything
525	  else is already dead-connection-aware.  (avva)
526
5272003-09-09 (Avva, Lisa Marie Seelye <[email protected]>)
528	* setuid support
529
5302003-09-05 (Avva)
531	* accept all new connections in the same event (so we work with ET epoll)
532	* mark all items as clsid=0 after slab page reassignment to please future
533	  asserts (on the road to making slab page reassignment work fully)
534
5352003-08-12 (Brad Fitzpatrick)
536	* use TCP_CORK on Linux or TCP_PUSH on BSD
537	* only use TCP_NODELAY when we don't have alternatives
538
5392003-08-10
540	* disable Nagel's Algorithm (TCP_NODELAY) for better performance (avva)
541
5422003-08-10
543	* support multiple levels of verbosity (-vv)
544
5452003-08-10  (Evan Martin)
546	* Makefile.am: debug, optimization, and static flags are controlled
547	  by the configure script.
548	* configure.ac:
549	  - allow specifying libevent directory with --with-libevent=DIR
550	  - check for malloc.h (unavailable on BSDs)
551	  - check for socklen_t (unavailable on OSX)
552	* assoc.c, items.c, slabs.c:  Remove some unused headers.
553	* memcached.c:  allow for nonexistence of malloc.h; #define a POSIX
554	  macro to import mlockall flags.
555
5562003-07-29
557	* version 1.1.7
558	* big bug fix: item exptime 0 meant expire immediately, not never
559	* version 1.1.8
560
5612003-07-22
562	* make 'delete' take second arg, of time to refuse new add/replace
563	* set/add/replace/delete can all take abs or delta time (delta can't
564	  be larger than a month)
565
5662003-07-21
567	* added doc/protocol.txt
568
5692003-07-01
570	* report CPU usage in stats
571
5722003-06-30
573	* version 1.1.6
574	* fix a number of obscure bugs
575	* more stats reporting
576
5772003-06-10
578	* removing use of Judy; use a hash.  (judy caused memory fragmentation)
579	* shrink some structures
580	* security improvements
581	* version 1.1.0
582
5832003-06-18
584	* changing maxsize back to an unsigned int
585
5862003-06-16
587	* adding PHP support
588	* added CONTRIBUTORS file
589	* version 1.0.4
590
5912003-06-15
592	* forgot to distribute website/api (still learning auto*)
593	* version 1.0.3
594
5952003-06-15
596	* update to version 1.0.2
597	* autoconf/automake fixes for older versions
598	* make stats report version number
599	* change license from GPL to BSD
600
601Fri, 13 Jun 2003 10:05:51 -0700  Evan Martin  <[email protected]>
602
603	* configure.ac, autogen.sh, Makefile.am:  Use autotools.
604	* items.c, memcached.c:  #include <time.h> for time(),
605	  printf time_t as %lu (is this correct?),
606	  minor warnings fixes.
607
608