Bug 1644780 - Removed diagnostic assertion when db::IncrementalVacuum fails. r=dom-workers-and-storage-reviewers,janv

Differential Revision: https://phabricator.services.mozilla.com/D82551
This commit is contained in:
Simon Giesecke 2020-07-07 16:05:29 +00:00
Родитель 880c2f04e1
Коммит 074fc942dd
1 изменённых файлов: 2 добавлений и 10 удалений

12
dom/cache/Connection.cpp поставляемый
Просмотреть файл

@ -38,16 +38,8 @@ Connection::Close() {
mClosed = true;
// If we are closing here, then Cache must not have a transaction
// open anywhere else. This should be guaranteed to succeed.
nsresult rv = db::IncrementalVacuum(this);
if (NS_WARN_IF(NS_FAILED(rv))) {
// In non-diagnostic builds, just ignore that vacuuming failed, and continue
// to close the connection.
#if defined(MOZ_DIAGNOSTIC_ASSERT_ENABLED)
MOZ_CRASH_UNSAFE_PRINTF("db::IncrementalVacuum failed with result 0x%08x",
static_cast<uint32_t>(rv));
#endif
}
// open anywhere else. This may fail if storage is corrupted.
Unused << NS_WARN_IF(NS_FAILED(db::IncrementalVacuum(this)));
return mBase->Close();
}