Bug 992974 - Improve logs at CacheStorageService::AddStorageEntry, r=michal
authorHonza Bambas <honzab.moz@firemni.cz>
Thu, 24 Apr 2014 18:50:45 +0200
changeset 198550 5a0136e2cc357a4002328f781b8dc8cf8e894a94
parent 198549 bace819903bbea609cbab39ccc26364ac3bb64ec
child 198551 6cea265963a6cdb001b97cf0fa61aef088d06b84
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmichal
bugs992974
milestone31.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 992974 - Improve logs at CacheStorageService::AddStorageEntry, r=michal
netwerk/cache2/CacheStorageService.cpp
--- a/netwerk/cache2/CacheStorageService.cpp
+++ b/netwerk/cache2/CacheStorageService.cpp
@@ -1075,16 +1075,17 @@ CacheStorageService::AddStorageEntry(nsC
       sGlobalEntryTables->Put(aContextKey, entries);
       LOG(("  new storage entries table for context %s", aContextKey.BeginReading()));
     }
 
     bool entryExists = entries->Get(entryKey, getter_AddRefs(entry));
 
     // check whether the file is already doomed
     if (entryExists && entry->IsFileDoomed() && !aReplace) {
+      LOG(("  file already doomed, replacing the entry"));
       aReplace = true;
     }
 
     // If truncate is demanded, delete and doom the current entry
     if (entryExists && aReplace) {
       entries->Remove(entryKey);
 
       LOG(("  dooming entry %p for %s because of OPEN_TRUNCATE", entry.get(), entryKey.get()));