Index: net/disk_cache/mapped_file_win.cc |
=================================================================== |
--- net/disk_cache/mapped_file_win.cc (revision 138404) |
+++ net/disk_cache/mapped_file_win.cc (working copy) |
@@ -28,7 +28,7 @@ |
view_size_ = size; |
// Make sure we detect hardware failures reading the headers. |
- size_t temp_len = size ? size : 4096; |
+ size_t temp_len = size ? size : 4096 * 2; |
gavinp
2012/05/31 19:59:50
This is twice as good! Could we ever have a file
rvargas (doing something else)
2012/05/31 20:07:05
Nope, the header size is 8k.
|
scoped_array<char> temp(new char[temp_len]); |
if (!Read(temp.get(), temp_len, 0)) |
return NULL; |