blob: a949728dc22c524d100b73800a1e6c3bc04d3a2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
Index header:
num_entries: 2
num_bytes: 27
this_id: 1
table_len: 64k
head: 0x90000001
tail: 0x90000000
Address: 0xa0010002
Address: 0xa0010003
-------------------------------
entry:
Address: 0xa0010002
hash: 0x687d1422
next: 0
rankings_node: 0x90000000
key_len: 13
long_key: 0
data_size: 0's
data_addr: 0's
key: "the first key"
rankings:
Address: 0x90000000
next: 0x90000000
prev: 0 <------ wrong
contents: 0xa0010002
dirty: 0
pointer: 0
-------------------------------
entry:
Address: 0xa0010003
hash: 0x63909ecb
next: 0
rankings_node: 0x90000001
key_len: 14
long_key: 0
data_size: 0's
data_addr: 0's
key: "some other key"
rankings:
Address: 0x90000001
next: 0x90000000
prev: 0x90000001
contents: 0xa0010003
dirty: 0
pointer: 0
================================
Generated with:
disk_cache::Entry *entry;
ASSERT_TRUE(cache_->CreateEntry("the first key", &entry));
entry->Close();
ASSERT_TRUE(cache_->CreateEntry("some other key", &entry)); <---- Edit value*
entry->Close();
* Edit the value with the debugger before it is saved to disk.
|