apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1390526 - /apr/apr/trunk/memcache/apr_memcache.c
Date Wed, 26 Sep 2012 14:42:53 GMT
Author: trawick
Date: Wed Sep 26 14:42:53 2012
New Revision: 1390526

URL: http://svn.apache.org/viewvc?rev=1390526&view=rev
Log:
apr_memcache_server_create(): Fix handling of the ttl parameter.
It is documented as a number of seconds but was treated as 
microseconds.

(The current Subversion release passes seconds.)

Submitted by: Tim Whittington <timw apache.org>
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=1390526&r1=1390525&r2=1390526&view=diff
==============================================================================
--- apr/apr/trunk/memcache/apr_memcache.c (original)
+++ apr/apr/trunk/memcache/apr_memcache.c Wed Sep 26 14:42:53 2012
@@ -414,7 +414,7 @@ APR_DECLARE(apr_status_t) apr_memcache_s
                                min,                     /* hard minimum */
                                smax,                    /* soft maximum */
                                max,                     /* hard maximum */
-                               ttl,                     /* Time to live */
+                               apr_time_from_sec(ttl),  /* Time to live */
                                mc_conn_construct,       /* Make a New Connection */
                                mc_conn_destruct,        /* Kill Old Connection */
                                server, np);



Mime
View raw message