Changeset 507
- Timestamp:
- 04/16/07 15:18:35 (2 years ago)
- Files:
-
- branches/multithreaded/api/perl/dev/bench.pl (modified) (1 diff)
- branches/multithreaded/api/perl/dev/cons-hash.pl (added)
- branches/multithreaded/server/ChangeLog (modified) (1 diff)
- branches/multithreaded/server/assoc.c (modified) (1 diff)
- branches/multithreaded/server/assoc.h (modified) (1 diff)
- branches/multithreaded/server/daemon.c (modified) (1 diff)
- branches/multithreaded/server/items.c (modified) (1 diff)
- branches/multithreaded/server/items.h (modified) (1 diff)
- branches/multithreaded/server/memcached.c (modified) (2 diffs)
- branches/multithreaded/server/slabs.c (modified) (1 diff)
- branches/multithreaded/website/apis.bml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/multithreaded/api/perl/dev/bench.pl
r299 r507 32 32 33 33 srand(1); 34 my $to = 3000;34 my $to = shift || 3000; 35 35 for (1..$to) { 36 36 warn "$_ / $to\n" if $_ % 100 == 0; branches/multithreaded/server/ChangeLog
r499 r507 11 11 null checks, adds asserts at the top of each function for any 12 12 use of conn *c without checking to see if c is NULL first. 13 14 * Also adjust clean-whitespace.pl to clean *.ac files. Add 15 script to test-suite to test for tabs. 13 16 14 17 2007-04-04 Paul Lindner <lindner@inuus.com> branches/multithreaded/server/assoc.c
r497 r507 481 481 if (! primary_hashtable) { 482 482 fprintf(stderr, "Failed to init hashtable.\n"); 483 exit( 1);483 exit(EXIT_FAILURE); 484 484 } 485 485 memset(primary_hashtable, 0, hash_size); branches/multithreaded/server/assoc.h
r469 r507 6 6 void do_assoc_move_next_bucket(void); 7 7 uint32_t hash( const void *key, size_t length, const uint32_t initval); 8 branches/multithreaded/server/daemon.c
r506 r507 49 49 break; 50 50 default: 51 _exit( 0);51 _exit(EXIT_SUCCESS); 52 52 } 53 53 branches/multithreaded/server/items.c
r506 r507 237 237 void do_item_remove(item *it) { 238 238 assert((it->it_flags & ITEM_SLABBED) == 0); 239 if (it->refcount ) {239 if (it->refcount != 0) { 240 240 it->refcount--; 241 241 DEBUG_REFCNT(it, '-'); branches/multithreaded/server/items.h
r474 r507 6 6 bool item_size_ok(const size_t nkey, const int flags, const int nbytes); 7 7 8 int do_item_link(item *it); /* may fail if transgresses limits */8 int do_item_link(item *it); /* may fail if transgresses limits */ 9 9 void do_item_unlink(item *it); 10 10 void do_item_remove(item *it); branches/multithreaded/server/memcached.c
r506 r507 98 98 99 99 void pre_gdb(void); 100 void conn_free(conn *c);100 static void conn_free(conn *c); 101 101 102 102 /** exported globals **/ … … 1868 1868 fprintf(stderr, "Too many open connections\n"); 1869 1869 accept_new_conns(false); 1870 stop = 1;1870 stop = true; 1871 1871 } else { 1872 1872 perror("accept()"); 1873 stop = 1;1873 stop = true; 1874 1874 } 1875 1875 break; branches/multithreaded/server/slabs.c
r506 r507 154 154 these three lines. */ 155 155 156 for (i = POWER_SMALLEST; i <= POWER_LARGEST; i++) {156 for (i = POWER_SMALLEST; i <= POWER_LARGEST; i++) { 157 157 if (++prealloc > maxslabs) 158 158 return; branches/multithreaded/website/apis.bml
r488 r507 19 19 <?h1 PHP API h1?> 20 20 21 <p>There are tons of PHP libraries available, in different conditions. The community hasn't yet decided which is the best. When they do, let me know. For now I'll let you search Google rather than link any.</p> 21 <p>There are tons of PHP libraries available, in different conditions. But it now seems there's an official one:</p> 22 <ul> 23 <li><a href="http://pecl.php.net/package/memcache">PHP PECL memcached client</a> -- official PHP client</li> 24 </ul> 22 25 23 26 <?h1 Python API h1?>
