apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1390477 - /apr/apr/trunk/memcache/apr_memcache.c
Date Wed, 26 Sep 2012 13:37:04 GMT
Author: trawick
Date: Wed Sep 26 13:37:04 2012
New Revision: 1390477

URL: http://svn.apache.org/viewvc?rev=1390477&view=rev
Log:
Fix dead server retry logic.

Submitted by: Gavin Shelley <columbusmonkey me.com>
Reviewed by: trawick

Modified:
    apr/apr/trunk/memcache/apr_memcache.c

Modified: apr/apr/trunk/memcache/apr_memcache.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/memcache/apr_memcache.c?rev=1390477&r1=1390476&r2=1390477&view=diff
==============================================================================
--- apr/apr/trunk/memcache/apr_memcache.c (original)
+++ apr/apr/trunk/memcache/apr_memcache.c Wed Sep 26 13:37:04 2012
@@ -183,8 +183,8 @@ apr_memcache_find_server_hash_default(vo
 #endif
             /* Try the dead server, every 5 seconds */
             if (curtime - ms->btime >  apr_time_from_sec(5)) {
+                ms->btime = curtime;
                 if (mc_version_ping(ms) == APR_SUCCESS) {
-                    ms->btime = curtime;
                     make_server_live(mc, ms);
 #if APR_HAS_THREADS
                     apr_thread_mutex_unlock(ms->lock);



Mime
View raw message