Bug 1175771 (part 1) - Fix indentation in nsHostResolver::FlushCache(). r=michal.
authorNicholas Nethercote <nnethercote@mozilla.com>
Wed, 10 Jun 2015 17:09:32 -0700
changeset 250673 3123ce2bf40f0867a9309b3da40e70469448a9e9
parent 250661 c3eb721ea1e76d64a3f3d270637a195d28fdf9f2
child 250674 a7992bd02bd07dbd27a1f189404a3fb9694e9ed3
push idunknown
push userunknown
push dateunknown
reviewersmichal
bugs1175771
milestone42.0a1
Bug 1175771 (part 1) - Fix indentation in nsHostResolver::FlushCache(). r=michal.
netwerk/dns/nsHostResolver.cpp
--- a/netwerk/dns/nsHostResolver.cpp
+++ b/netwerk/dns/nsHostResolver.cpp
@@ -627,34 +627,34 @@ nsHostResolver::ClearPendingQueue(PRCLis
 // This function removes all existing resolved host entries from the hash.
 // Names that are in the pending queues can be left there. Entries in the
 // cache that have 'Resolve' set true but not 'onQueue' are being resolved
 // right now, so we need to mark them to get re-resolved on completion!
 
 void
 nsHostResolver::FlushCache()
 {
-  MutexAutoLock lock(mLock);
-  mEvictionQSize = 0;
+    MutexAutoLock lock(mLock);
+    mEvictionQSize = 0;
 
-  // Clear the evictionQ and remove all its corresponding entries from
-  // the cache first
-  if (!PR_CLIST_IS_EMPTY(&mEvictionQ)) {
-      PRCList *node = mEvictionQ.next;
-      while (node != &mEvictionQ) {
-          nsHostRecord *rec = static_cast<nsHostRecord *>(node);
-          node = node->next;
-          PR_REMOVE_AND_INIT_LINK(rec);
-          PL_DHashTableRemove(&mDB, (nsHostKey *) rec);
-          NS_RELEASE(rec);
-      }
-  }
+    // Clear the evictionQ and remove all its corresponding entries from
+    // the cache first
+    if (!PR_CLIST_IS_EMPTY(&mEvictionQ)) {
+        PRCList *node = mEvictionQ.next;
+        while (node != &mEvictionQ) {
+            nsHostRecord *rec = static_cast<nsHostRecord *>(node);
+            node = node->next;
+            PR_REMOVE_AND_INIT_LINK(rec);
+            PL_DHashTableRemove(&mDB, (nsHostKey *) rec);
+            NS_RELEASE(rec);
+        }
+    }
 
-  // Refresh the cache entries that are resolving RIGHT now, remove the rest.
-  PL_DHashTableEnumerate(&mDB, HostDB_PruneEntry, nullptr);
+    // Refresh the cache entries that are resolving RIGHT now, remove the rest.
+    PL_DHashTableEnumerate(&mDB, HostDB_PruneEntry, nullptr);
 }
 
 void
 nsHostResolver::Shutdown()
 {
     LOG(("Shutting down host resolver.\n"));
 
 #if TTL_AVAILABLE