Hi,

Take cachemgr and get "All Cache Objects ". You will see long file with strings like ============
KEY 00809CE0307E5229705C06DD4D186146
STORE_OK NOT_IN_MEMORY SWAPOUT_DONE PING_NONE
CACHABLE,VALIDATED
============
Well, all is Ok . Now look it in hex:
============
00ED 4B 45 59 20 │ 30 30 38 30 │ 39 43 45 30 │ 33 30 37 45 KEY 00809CE0307E
00FD 35 32 32 39 │ 37 30 35 43 │ 30 36 44 44 │ 34 44 31 38 5229705C06DD4D18
010D 36 31 34 36 │ 0D 0A 09 53 │ 54 4F 52 45 │ 5F 4F 4B 20 6146...STORE_OK
011D 20 20 20 20 │ 20 4E 4F 54 │ 5F 49 4E 5F │ 4D 45 4D 4F NOT_IN_MEMO
012D 52 59 20 53 │ 57 41 50 4F │ 55 54 5F 44 │ 4F 4E 45 20 RY SWAPOUT_DONE
013D 50 49 4E 47 │ 5F 4E 4F 4E │ 45 20 20 20 │ 0D 0A 09 43 PING_NONE ...C
014D 41 43 48 41 │ 42 4C 45 2C │ 56 41 4C 49 │ 44 41 54 45 ACHABLE,VALIDATE
============
There is some extra spaces (code 0x20)
Now look in stat.c -> statStoreEntry()
============
{
[....]
if (mem)
storeAppendPrintf(s, "\t%s %s\n",
RequestMethodStr[mem->method], mem->log_url);
==============
RequestMethodStr is const char *[]
So conclusion is that mem->log_url contains "\0x20\0x20\0x20NOT_IN_MEMORY SWAPOUT_DONE PING_NONE\0x20\0x20\0x20\0x00" ?
Is it reasonable to store extra 6 spaces ?


SY,
Evgeny Kotsuba

Reply via email to