Bug 1013587 - HTTP cache v2: Start preload on input stream open for existing entries, r=michal
authorHonza Bambas <honzab.moz@firemni.cz>
Thu, 12 Jun 2014 18:04:42 +0200
changeset 188423 085ecf37395e11cd5a4db565da6289c2a111e770
parent 188422 8f03e0ef5809f37c170d9ed5a430c80e71fed427
child 188424 7b4feb3d3a395ac966df43f059bb2fa21eef93e6
push id44810
push userhonzab.moz@firemni.cz
push dateThu, 12 Jun 2014 16:06:25 +0000
treeherdermozilla-inbound@085ecf37395e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmichal
bugs1013587
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1013587 - HTTP cache v2: Start preload on input stream open for existing entries, r=michal
netwerk/cache2/CacheFileInputStream.cpp
--- a/netwerk/cache2/CacheFileInputStream.cpp
+++ b/netwerk/cache2/CacheFileInputStream.cpp
@@ -325,17 +325,17 @@ CacheFileInputStream::Seek(int32_t whenc
     case NS_SEEK_END:
       newPos += mFile->mDataSize;
       break;
     default:
       NS_ERROR("invalid whence");
       return NS_ERROR_INVALID_ARG;
   }
   mPos = newPos;
-  EnsureCorrectChunk(true);
+  EnsureCorrectChunk(false);
 
   LOG(("CacheFileInputStream::Seek() [this=%p, pos=%lld]", this, mPos));
   return NS_OK;
 }
 
 NS_IMETHODIMP
 CacheFileInputStream::Tell(int64_t *_retval)
 {