From 0a80f3730f8a1d10e3a5cc7d2a7d6a175a7bcc7c Mon Sep 17 00:00:00 2001 From: Michal Novotny Date: Wed, 25 Feb 2015 17:46:51 +0100 Subject: [PATCH] Bug 1133739 - HTTP cache v2: Add telemetry probes to find out the best initial read size of the metadata (fixed missing initialization of mFirstRead in one constructor), r=jseward --- netwerk/cache2/CacheFileMetadata.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/netwerk/cache2/CacheFileMetadata.cpp b/netwerk/cache2/CacheFileMetadata.cpp index a706ab05556..da98994e36c 100644 --- a/netwerk/cache2/CacheFileMetadata.cpp +++ b/netwerk/cache2/CacheFileMetadata.cpp @@ -34,6 +34,7 @@ NS_IMPL_ISUPPORTS(CacheFileMetadata, CacheFileIOListener) CacheFileMetadata::CacheFileMetadata(CacheFileHandle *aHandle, const nsACString &aKey) : CacheMemoryConsumer(NORMAL) , mHandle(aHandle) + , mFirstRead(true) , mHashArray(nullptr) , mHashArraySize(0) , mHashCount(0)