[prev in list] [next in list] [prev in thread] [next in thread] 

List:       memcached
Subject:    Re: Memcached stats issue
From:       dormando <dormando () rydia ! net>
Date:       2008-06-23 21:13:06
Message-ID: 486011E2.5040408 () rydia ! net
[Download RAW message or body]

Peter J. Holzer wrote:
> On 2008-06-11 16:16:31 +0200, Mattias Karlsson wrote:
>> The file "doc/protocol.txt" says:
>>
>> bytes             64u      Current number of bytes used by this server to store items
>> limit_maxbytes    32u      Number of bytes this server is allowed to use for storage.
>>
>> So my question is: how can 'bytes' be larger than 'limit_maxbytes' ?
> 
> On a related note: Shouldn't limit_maxbytes be a 64u, too? 4 Gigs of RAM
> isn't that much any more, and conceptionally, "bytes" and
> "limit_maxbytes" should be the same type, IMHO.
> 
> 	hp

Weird! I hadn't noticed that. 'maxbytes' is actually a size_t, which
will be 64-bit on a 64-bit OS, but 32-bit on a 32-bit OS, etc. So it's
fine as is, but the documentation is weird. Should we say 32u/64u? :)

-Dormando

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic