diff options
Diffstat (limited to 'net/disk_cache/backend_impl.cc')
-rw-r--r-- | net/disk_cache/backend_impl.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc index 28d875a..e997b90 100644 --- a/net/disk_cache/backend_impl.cc +++ b/net/disk_cache/backend_impl.cc @@ -887,6 +887,11 @@ bool BackendImpl::CreateBackingStore(disk_cache::File* file) { IndexHeader header; header.table_len = DesiredIndexTableLen(max_size_); + + // We need file version 2.1 for the new eviction algorithm. + if (new_eviction_) + header.version = 0x20001; + header.create_time = Time::Now().ToInternalValue(); if (!file->Write(&header, sizeof(header), 0)) |