You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by cm...@apache.org on 2012/09/28 22:34:50 UTC
svn commit: r1391641 -
/subversion/trunk/subversion/libsvn_subr/cache-memcache.c
Author: cmpilato
Date: Fri Sep 28 20:34:50 2012
New Revision: 1391641
URL: http://svn.apache.org/viewvc?rev=1391641&view=rev
Log:
* subversion/libsvn_subr/cache-memcache.c
(add_memcache_server): Convert time-to-live value from seconds to
the expected microseconds.
Patch by: Jeff Trawick <trawick{_AT_}gmail.com>
(Tweaked by me.)
Modified:
subversion/trunk/subversion/libsvn_subr/cache-memcache.c
Modified: subversion/trunk/subversion/libsvn_subr/cache-memcache.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/cache-memcache.c?rev=1391641&r1=1391640&r2=1391641&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/cache-memcache.c (original)
+++ subversion/trunk/subversion/libsvn_subr/cache-memcache.c Fri Sep 28 20:34:50 2012
@@ -470,7 +470,7 @@ add_memcache_server(const char *name,
0, /* min connections */
5, /* soft max connections */
10, /* hard max connections */
- 50, /* connection time to live (secs) */
+ apr_time_from_sec(50), /* ttl (ms) */
&server);
if (apr_err != APR_SUCCESS)
{
Re: svn commit: r1391641 - /subversion/trunk/subversion/libsvn_subr/cache-memcache.c
Posted by "C. Michael Pilato" <cm...@collab.net>.
On 09/29/2012 03:29 PM, Blair Zajac wrote:
> On 09/28/2012 01:34 PM, cmpilato@apache.org wrote:
>> Author: cmpilato
>> Date: Fri Sep 28 20:34:50 2012
>> New Revision: 1391641
>>
>> URL: http://svn.apache.org/viewvc?rev=1391641&view=rev
>> Log:
>> * subversion/libsvn_subr/cache-memcache.c
>> (add_memcache_server): Convert time-to-live value from seconds to
>> the expected microseconds.
>>
>
>> ==============================================================================
>>
>> --- subversion/trunk/subversion/libsvn_subr/cache-memcache.c (original)
>> +++ subversion/trunk/subversion/libsvn_subr/cache-memcache.c Fri Sep 28
>> 20:34:50 2012
>> @@ -470,7 +470,7 @@ add_memcache_server(const char *name,
>> 0, /* min connections */
>> 5, /* soft max connections */
>> 10, /* hard max connections */
>> - 50, /* connection time to live
>> (secs) */
>> + apr_time_from_sec(50), /* ttl (ms) */
>
> Hi Mike,
>
> ms is for milliseconds and µs for microseconds, I suggest changing 'ms' to
> 'microseconds', as 'us' would be confusing.
That's what I get for focusing on compressing code rather than, you know,
thinking. Fixed. (Thanks, Blair.)
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Enterprise Cloud Development
Re: svn commit: r1391641 - /subversion/trunk/subversion/libsvn_subr/cache-memcache.c
Posted by Blair Zajac <bl...@orcaware.com>.
On 09/28/2012 01:34 PM, cmpilato@apache.org wrote:
> Author: cmpilato
> Date: Fri Sep 28 20:34:50 2012
> New Revision: 1391641
>
> URL: http://svn.apache.org/viewvc?rev=1391641&view=rev
> Log:
> * subversion/libsvn_subr/cache-memcache.c
> (add_memcache_server): Convert time-to-live value from seconds to
> the expected microseconds.
>
> ==============================================================================
> --- subversion/trunk/subversion/libsvn_subr/cache-memcache.c (original)
> +++ subversion/trunk/subversion/libsvn_subr/cache-memcache.c Fri Sep 28 20:34:50 2012
> @@ -470,7 +470,7 @@ add_memcache_server(const char *name,
> 0, /* min connections */
> 5, /* soft max connections */
> 10, /* hard max connections */
> - 50, /* connection time to live (secs) */
> + apr_time_from_sec(50), /* ttl (ms) */
Hi Mike,
ms is for milliseconds and µs for microseconds, I suggest changing 'ms'
to 'microseconds', as 'us' would be confusing.
Blair