Bug 1540401 - Part 3: Convert MOZ_ASSERT to MOZ_DIAGNOSTIC_ASSERT to verify that bug 1541772 has been fixed; r=asuth
authorJan Varga <jan.varga@gmail.com>
Mon, 15 Apr 2019 13:52:08 +0200
changeset 474334 b02147ae4804fa1a434dca44e1020c2e7361f5f7
parent 474333 930f0f51b681aea2a5e915a2770f80a9914ed3df
child 474335 18b02f666766b281cb400d3f551ce26931c61713
push id113146
push userjvarga@mozilla.com
push dateFri, 17 May 2019 16:52:53 +0000
treeherdermozilla-inbound@b02147ae4804 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersasuth
bugs1540401, 1541772
milestone68.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 1540401 - Part 3: Convert MOZ_ASSERT to MOZ_DIAGNOSTIC_ASSERT to verify that bug 1541772 has been fixed; r=asuth Differential Revision: https://phabricator.services.mozilla.com/D27493
dom/localstorage/ActorsParent.cpp
--- a/dom/localstorage/ActorsParent.cpp
+++ b/dom/localstorage/ActorsParent.cpp
@@ -7037,17 +7037,17 @@ nsresult PrepareDatastoreOp::DatabaseWor
   }
 
   rv = VerifyDatabaseInformation(connection);
   if (NS_WARN_IF(NS_FAILED(rv))) {
     return rv;
   }
 
   if (hasDataForMigration) {
-    MOZ_ASSERT(mUsage == 0);
+    MOZ_DIAGNOSTIC_ASSERT(mUsage == 0);
 
     rv = AttachArchiveDatabase(quotaManager->GetStoragePath(), connection);
     if (NS_WARN_IF(NS_FAILED(rv))) {
       return rv;
     }
 
     int64_t newUsage;
     rv = GetUsage(connection, mArchivedOriginScope, &newUsage);