Bug 948448 - Free up disk space after clearing seer data. r=honzab
authorNicholas Hurley <hurley@todesschaf.org>
Fri, 17 Jan 2014 17:45:50 -0800
changeset 164113 c5684d09fa1b7a75fe3b96718147742479eab48d
parent 164112 5bf92bd8d7ed4ee2ef372c421279dba54e166c77
child 164114 41a0bf080410736d4971c148ca2c22a7c5d180ec
push id26026
push userphilringnalda@gmail.com
push dateSat, 18 Jan 2014 23:17:27 +0000
treeherdermozilla-central@61fd0f987cf2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershonzab
bugs948448
milestone29.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 948448 - Free up disk space after clearing seer data. r=honzab
netwerk/base/src/Seer.cpp
--- a/netwerk/base/src/Seer.cpp
+++ b/netwerk/base/src/Seer.cpp
@@ -2239,16 +2239,18 @@ Seer::ResetInternal()
   mDB->ExecuteSimpleSQL(NS_LITERAL_CSTRING("DELETE FROM moz_redirects;"));
   mDB->ExecuteSimpleSQL(NS_LITERAL_CSTRING("DELETE FROM moz_startup_pages;"));
   mDB->ExecuteSimpleSQL(NS_LITERAL_CSTRING("DELETE FROM moz_startups;"));
 
   // These cascade to moz_subresources and moz_subhosts, respectively.
   mDB->ExecuteSimpleSQL(NS_LITERAL_CSTRING("DELETE FROM moz_pages;"));
   mDB->ExecuteSimpleSQL(NS_LITERAL_CSTRING("DELETE FROM moz_hosts;"));
 
+  VacuumDatabase();
+
   // Go ahead and ensure this is flushed to disk
   CommitTransaction();
   BeginTransaction();
 }
 
 // Called on the main thread to clear out all our knowledge. Tabula Rasa FTW!
 NS_IMETHODIMP
 Seer::Reset()