Permalink
Commits on Jun 19, 2008
  1. Another buffer overrun fix.

    Cosimo Streppone committed with dustin Jun 19, 2008
Commits on Jun 18, 2008
  1. Allocate new conn structures with calloc.

    Janusz Dziemidowicz reported conn->next was sometimes not initialized.
    This would have been the case for any client connection, or any
    listener connection that wasn't tcp.
    dustin committed Jun 18, 2008
  2. Fix heap corruption when copying too much data onto an item.

    (Dustin:)
    I wrote a fuzz test that would consistently crash in assoc_find, but
    after this change the test failed to break things and my fuzz
    generator couldn't produce another breaking case.
    kroki committed with dustin Jun 18, 2008
  3. Use calloc for allocating the hash table vs. malloc+memset.

    calloc is already used to resize the hash table, so it's good to be
    consistent here.
    dustin committed Jun 18, 2008
Commits on Jun 13, 2008
  1. Fix freesuffix corruption.

    When attempting to grow the freesuffix storage, the realloc is sized
    to the number of bytes in freesuffixtotal instead of a number of
    pointers of that size.
    
    That is, the original malloc is for
    
      sizeof(char *) * freesuffixtotal
    
    but the realloc for growth was
    
      freesuffixtotal * 2
    
    On a 32-bit machine, this would have the effect of freeing half of
    the freelist when an attempt was made to grow it.
    
    The realloc is now consistent with the initial malloc.
    dustin committed Jun 13, 2008
Commits on Jun 12, 2008
  1. make -k work under daemon mode (-d).

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@783 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Jun 12, 2008
Commits on Mar 3, 2008
  1. Document a few of the stats commands.

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@747 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Mar 3, 2008
  2. Halve distro size ;)

    If we want the image back, fetch it from history into a doc or scratch repo.
    
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@743 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Mar 3, 2008
  3. Add -L mode to manpage.

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@742 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Mar 3, 2008
  4. Version bump (shipit's having trouble with it), and update ChangeLog

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@741 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Mar 3, 2008
  5. per-stat-class tracking of evictions and out of memory conditions.

    We have an evictions stat, but it doesn't tell us if a particular slab class is hot. Now you can tell.
    Can also tell if a particular class is in a weird state if the out of memory errors are high.
    
    Also handy if you're using -M to disable the LRU.
    
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@740 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Mar 3, 2008
  6. Don't re-calculate the slab class id for slabs_free() either.

    This + previous patch slightly reduce user CPU time, especially during heavy evictions.
    
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@739 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Mar 3, 2008
  7. Don't re-calculate the slab class id.

    slabs_alloc() internally calls slabs_clsid(), so an eviction case would crawl the list of slab classes three times.
    
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@738 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Mar 3, 2008
  8. Useless check. 'id' will never be higher than POWER_LARGEST.

    Which is defined as 200 in slabs.c, but LARGEST_ID is defined as 255 in items.c? Weird.
    
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@737 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Mar 3, 2008
  9. Give 'SERVER_ERROR out of memory' errors more context.

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@736 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Mar 3, 2008
Commits on Feb 29, 2008
  1. Minor refactoring of server_socket.

    Build the linked list out backwards so this command may be executed
    more than once.  This also reduces the code a bit.
    
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@729 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dsallings committed Feb 29, 2008
Commits on Feb 27, 2008
  1. Handle bind errors in server_socket() (Brian Aker) (Dormando helped!)

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@728 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 27, 2008
  2. Enable UDP by default, clean up server socket code (Brian Aker)

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@726 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 27, 2008
Commits on Feb 25, 2008
  1. Enable use of large memory pages (Trond Norbye) <Trond.Norbye@Sun.COM>

    Initial support for solaris.
    
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@724 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 25, 2008
Commits on Feb 24, 2008
  1. Make likely() and unlikely() available (Brian Aker)

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@716 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 24, 2008
Commits on Feb 22, 2008
  1. Add verbose message on noreply conditions.

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@712 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 22, 2008
  2. Changelog update (fix my formatting too)

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@711 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 22, 2008
  3. Implement 'noreply' option for update commands. (Tomash Brechko <toma…

    …sh.brechko@gmail.com>)
    
    Commands add, set, replace, append, prepend, cas, delete, incr, decr,
    flush_all, verbosity can take last optional parameter, 'noreply',
    which instructs the server to not send the reply.
    
    Add benchmark script for noreply parameter.
    
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@708 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 22, 2008
  4. Close socket on unhandled read errors. (Tao Hui <taohui3@gmail.com>)

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@707 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 22, 2008
Commits on Feb 19, 2008
  1. Someday I'll stop forgetting the changelog updates :)

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@706 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 19, 2008
Commits on Feb 18, 2008
  1. Swap time(2) with gettimeofday(2), since the latter is optimized away…

    … on some platforms. (Brian Aker) <brian@tangent.org>
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@704 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 18, 2008
  2. Add --enable-64bit to build 64-bit version of memcached (Trond Norbye…

    …) <Trond.Norbye@Sun.COM>
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@703 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 18, 2008
  3. add compiler options for Sun Studio compilers with --enable-threads (…

    …Trond Norbye)
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@702 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 18, 2008
  4. Support multiple interfaces returned by IPv6 interfaces. By Brian Ake…

    …r <brian@tangent.org>
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@701 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 18, 2008
  5. IPv6 support patch by Brian Aker <brian@tangent.org>

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@700 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 18, 2008
Commits on Feb 11, 2008
  1. Break out of the read-loop when read returns with available space

    (trond.norbye@sun.com)
    
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@699 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 11, 2008
  2. Use the correct headerfile for signal-related functions

    (Trond.Norbye@Sun.COM)
    
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@698 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 11, 2008
  3. Missed again... changelog update for chunk fix.

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@697 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 11, 2008
  4. The memory returned from do_slabs_alloc is currently not properly ali…

    …gned when compiled in an ILP32 environment. The memory returned is aligned to the size of the pointers, but we need to return a pointer that is suitable aligned so that it may be assigned to a pointer to any type of object.
    
    The cas_id member cause the item-struct to require 8 byte boundaries.
    (Trond.Norbye@Sun.COM)
    
    
    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@696 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 11, 2008
  5. Forgot ChangeLog entry for -k fix.

    git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@695 b0b603af-a30f-0410-a34e-baf09ae79d0b
    dormando committed Feb 11, 2008