1 Index file: 2 magic: c103cac3 3 version: 2.0 4 entries: 5 5 total bytes: 66 6 last file number: 0 7 current id: 1 8 table length: 65536 9 last crash: 1 10 experiment: 0 11 head 0: 0x90000004 12 tail 0: 0x90000000 13 size 0: 0x0 14 head 1: 0x0 15 tail 1: 0x0 16 size 1: 0x0 17 head 2: 0x0 18 tail 2: 0x0 19 size 2: 0x0 20 head 3: 0x0 21 tail 3: 0x0 22 size 3: 0x0 23 head 4: 0x0 24 tail 4: 0x0 25 size 4: 0x0 26 transaction: 0x0 27 operation: 0 28 operation list: 0 29 ------------------------- 30 31 Block file: data_0 32 magic: c104cac3 33 version: 2.0 34 file id: 0 35 next file id: 0 36 entry size: 36 37 current entries: 5 38 max entries: 1024 39 updating: 0 40 empty sz 1: 0 41 empty sz 2: 0 42 empty sz 3: 1 43 empty sz 4: 254 44 user 0: 0x0 45 user 1: 0x0 46 user 2: 0x0 47 user 3: 0x0 48 ------------------------- 49 50 Block file: data_1 51 magic: c104cac3 52 version: 2.0 53 file id: 1 54 next file id: 0 55 entry size: 256 56 current entries: 6 57 max entries: 1024 58 updating: 0 59 empty sz 1: 1 60 empty sz 2: 0 61 empty sz 3: 0 62 empty sz 4: 254 63 user 0: 0x0 64 user 1: 0x0 65 user 2: 0x0 66 user 3: 0x0 67 ------------------------- 68 69 Block file: data_2 70 magic: c104cac3 71 version: 2.0 72 file id: 2 73 next file id: 0 74 entry size: 1024 75 current entries: 0 76 max entries: 0 77 updating: 0 78 empty sz 1: 0 79 empty sz 2: 0 80 empty sz 3: 0 81 empty sz 4: 0 82 user 0: 0x0 83 user 1: 0x0 84 user 2: 0x0 85 user 3: 0x0 86 ------------------------- 87 88 Block file: data_3 89 magic: c104cac3 90 version: 2.0 91 file id: 3 92 next file id: 0 93 entry size: 4096 94 current entries: 0 95 max entries: 0 96 updating: 0 97 empty sz 1: 0 98 empty sz 2: 0 99 empty sz 3: 0 100 empty sz 4: 0 101 user 0: 0x0 102 user 1: 0x0 103 user 2: 0x0 104 user 3: 0x0 105 ------------------------- 106 107 Entry at 0xa0010002 108 hash: 0xc24ac438 109 next entry: 0xa0010003 110 rankings: 0x90000000 111 key length: 13 112 key: "The first key" 113 key addr: 0x0 114 reuse count: 0 115 refetch count: 0 116 state: 0 117 data size 0: 0 118 data addr 0: 0x0 119 data size 1: 0 120 data addr 1: 0x0 121 data size 2: 0 122 data addr 2: 0x0 123 data size 3: 0 124 data addr 3: 0x0 125 ---------- 126 127 Rankings at 0x90000000 128 next: 0x90000000 129 prev: 0x90000001 130 entry: 0xa0010002 131 dirty: 0 132 pointer: 0x0 133 ---------- 134 135 Entry at 0xa0010003 136 hash: 0xb16af282 137 next entry: 0xa0010004 138 rankings: 0x90000001 139 key length: 14 140 key: "The Second key" 141 key addr: 0x0 142 reuse count: 0 143 refetch count: 0 144 state: 0 145 data size 0: 0 146 data addr 0: 0x0 147 data size 1: 0 148 data addr 1: 0x0 149 data size 2: 0 150 data addr 2: 0x0 151 data size 3: 0 152 data addr 3: 0x0 153 ---------- 154 155 Rankings at 0x90000001 156 next: 0x90000000 157 prev: 0x90000002 158 entry: 0xa0010003 159 dirty: 0 160 pointer: 0x0 161 ---------- 162 163 Entry at 0xa0010004 164 hash: 0x90efd732 165 next entry: 0xa0010005 166 rankings: 0x90000002 167 key length: 13 168 key: "The third key" 169 key addr: 0x0 170 reuse count: 0 171 refetch count: 0 172 state: 0 173 data size 0: 0 174 data addr 0: 0x0 175 data size 1: 0 176 data addr 1: 0x0 177 data size 2: 0 178 data addr 2: 0x0 179 data size 3: 0 180 data addr 3: 0x0 181 ---------- 182 183 Rankings at 0x90000002 184 next: 0x90000001 185 prev: 0x90000003 186 entry: 0xa0010004 187 dirty: 0 188 pointer: 0x0 189 ---------- 190 191 Entry at 0xa0010005 192 hash: 0x147cc398 193 next entry: 0xa0010006 194 rankings: 0x90000003 195 key length: 13 196 key: "The Fouth key" 197 key addr: 0x0 198 reuse count: 0 199 refetch count: 0 200 state: 0 201 data size 0: 0 202 data addr 0: 0x0 203 data size 1: 0 204 data addr 1: 0x0 205 data size 2: 0 206 data addr 2: 0x0 207 data size 3: 0 208 data addr 3: 0x0 209 ---------- 210 211 Rankings at 0x90000003 212 next: 0x90000002 213 prev: 0x90000004 214 entry: 0xa0010005 215 dirty: 0 216 pointer: 0x0 217 ---------- 218 219 Entry at 0xa0010006 220 hash: 0x9d910c3c 221 next entry: 0xa0010002 222 rankings: 0x90000004 223 key length: 13 224 key: "The fifth key" 225 key addr: 0x0 226 reuse count: 0 227 refetch count: 0 228 state: 0 229 data size 0: 0 230 data addr 0: 0x0 231 data size 1: 0 232 data addr 1: 0x0 233 data size 2: 0 234 data addr 2: 0x0 235 data size 3: 0 236 data addr 3: 0x0 237 ---------- 238 239 Rankings at 0x90000004 240 next: 0x90000003 241 prev: 0x90000004 242 entry: 0xa0010006 243 dirty: 1 244 pointer: 0x0 245 246 ================================ 247 248 Generated with: 249 250 SetMask(0x1); // 2-entry table. 251 SetMaxSize(0x3000); // 12 kB. 252 InitCache(); 253 254 disk_cache::Entry* entry; 255 256 ASSERT_EQ(net::OK, CreateEntry("The first key", &entry)); 257 entry->Close(); 258 ASSERT_EQ(net::OK, CreateEntry("The Second key", &entry)); 259 entry->Close(); 260 ASSERT_EQ(net::OK, CreateEntry("The third key", &entry)); 261 entry->Close(); 262 ASSERT_EQ(net::OK, CreateEntry("The Fouth key", &entry)); 263 entry->Close(); 264 ASSERT_EQ(net::OK, CreateEntry("The fifth key", &entry)); <---- Loop it to the first one. 265 entry->Close(); 266