cvs: pecl /memcache memcache.c

From: Date: Tue, 03 Oct 2006 18:17:25 +0000
Subject: cvs: pecl /memcache memcache.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-6452@lists.php.net to get a copy of this message
tony2001 Tue Oct 3 18:17:25 2006 UTC Modified files: /pecl/memcache memcache.c Log: remove unnecessary check http://cvs.php.net/viewvc.cgi/pecl/memcache/memcache.c?r1=1.61&r2=1.62&diff_format=u Index: pecl/memcache/memcache.c diff -u pecl/memcache/memcache.c:1.61 pecl/memcache/memcache.c:1.62 --- pecl/memcache/memcache.c:1.61 Tue Oct 3 10:14:35 2006 +++ pecl/memcache/memcache.c Tue Oct 3 18:17:25 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: memcache.c,v 1.61 2006/10/03 10:14:35 tony2001 Exp $ */ +/* $Id: memcache.c,v 1.62 2006/10/03 18:17:25 tony2001 Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -284,7 +284,7 @@ php_info_print_table_start(); php_info_print_table_header(2, "memcache support", "enabled"); php_info_print_table_row(2, "Active persistent connections", buf); - php_info_print_table_row(2, "Revision", "$Revision: 1.61 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.62 $"); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); @@ -741,7 +741,7 @@ mmc = pool->buckets[hash % pool->num_buckets]; /* perform failover if needed */ - for (i=0; !mmc_open(mmc, 0, NULL, NULL TSRMLS_CC) && i<pool->num_buckets && MEMCACHE_G(allow_failover) && i<MEMCACHE_G(max_failover_attempts); i++) { + for (i=0; !mmc_open(mmc, 0, NULL, NULL TSRMLS_CC) && MEMCACHE_G(allow_failover) && i<MEMCACHE_G(max_failover_attempts); i++) { char *next_key = emalloc(key_len + MAX_LENGTH_OF_LONG + 1); int next_len = sprintf(next_key, "%d%s", i+1, key); MMC_DEBUG(("mmc_server_find: failed to connect to server '%s:%d' status %d, trying next", mmc->host, mmc->port, mmc->status));

« previous php.pecl.cvs (#6452) next »