|
Disk Cache: Improve handling of dirty entries.
* Split the entry sanity checks in two parts: a critical one
and a non-critical one. This allows us to return dirty entries
instead of failing to open them.
* Make sure that we cannot reach an entry through the index
before the actual data reaches the disk (when creating an entry
linked through a parent we were not respecting that).
* When deleting a block from a block file, first clean it
up and then update the map (avoid leaving a dirty free block
if there is a crash)
* Handle the case of errors when opening entries through the
enumerations path.
BUG= 73102
TEST=net_unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103323
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+528 lines, -62 lines) |
Patch |
 |
M |
net/disk_cache/backend_impl.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/disk_cache/backend_impl.cc
|
View
|
|
6 chunks |
+51 lines, -14 lines |
1 comment
|
Download
|
 |
M |
net/disk_cache/backend_unittest.cc
|
View
|
|
3 chunks |
+340 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/disk_cache/block_files.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/disk_cache/entry_impl.h
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/disk_cache/entry_impl.cc
|
View
|
|
6 chunks |
+51 lines, -8 lines |
0 comments
|
Download
|
 |
M |
net/disk_cache/eviction.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
net/disk_cache/eviction.cc
|
View
|
|
12 chunks |
+31 lines, -16 lines |
0 comments
|
Download
|
 |
M |
net/disk_cache/in_flight_backend_io.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/disk_cache/rankings.h
|
View
|
|
3 chunks |
+13 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/disk_cache/rankings.cc
|
View
|
|
6 chunks |
+25 lines, -12 lines |
1 comment
|
Download
|
Total messages: 2 (0 generated)
|