Bug 1013587 - HTTP cache v2: Start preload on input stream open for existing entries. r=michal, a=lmandel
☠☠ backed out by 8e6d0f924669 ☠ ☠
authorHonza Bambas <honzab.moz@firemni.cz>
Thu, 12 Jun 2014 18:04:42 +0200
changeset 200655 80f77d10896bdd11dff4a49962b344801136f7a9
parent 200654 417056b401e53b52ef6238c71797915f1857f70a
child 200656 c90e69bc6c7de85a0efbbb44dc7adacc2574569b
push id6281
push userryanvm@gmail.com
push dateFri, 27 Jun 2014 14:32:59 +0000
treeherdermozilla-aurora@04303003b896 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmichal, lmandel
bugs1013587
milestone32.0a2
Bug 1013587 - HTTP cache v2: Start preload on input stream open for existing entries. r=michal, a=lmandel
netwerk/cache2/CacheFileInputStream.cpp
--- a/netwerk/cache2/CacheFileInputStream.cpp
+++ b/netwerk/cache2/CacheFileInputStream.cpp
@@ -324,17 +324,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)
 {