| Index: net/disk_cache/backend_impl.cc
|
| ===================================================================
|
| --- net/disk_cache/backend_impl.cc (revision 17031)
|
| +++ net/disk_cache/backend_impl.cc (working copy)
|
| @@ -788,6 +788,10 @@
|
| LogStats();
|
| ReportError(error);
|
|
|
| + // Reset the mask_ if it was not given by the user.
|
| + if (mask_ == data_->header.table_len - 1)
|
| + mask_ = 0;
|
| +
|
| // Setting the index table length to an invalid value will force re-creation
|
| // of the cache files.
|
| data_->header.table_len = 1;
|
| @@ -983,6 +987,10 @@
|
| }
|
|
|
| void BackendImpl::PrepareForRestart() {
|
| + // Reset the mask_ if it was not given by the user.
|
| + if (mask_ == data_->header.table_len - 1)
|
| + mask_ = 0;
|
| +
|
| data_->header.crash = 0;
|
| index_ = NULL;
|
| data_ = NULL;
|
|
|