From b503e88c4f50569d1d9104c543bf936ce6225ba6 Mon Sep 17 00:00:00 2001 From: "dietrich@mozilla.com" Date: Mon, 30 Jul 2007 21:55:51 -0700 Subject: [PATCH] Bug 389876 followup (r+a=mconnor) --- toolkit/components/places/src/nsNavHistory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolkit/components/places/src/nsNavHistory.cpp b/toolkit/components/places/src/nsNavHistory.cpp index eb4fe27865d5..186cb86bb396 100644 --- a/toolkit/components/places/src/nsNavHistory.cpp +++ b/toolkit/components/places/src/nsNavHistory.cpp @@ -970,6 +970,7 @@ nsNavHistory::CleanUpOnQuit() nsresult rv = mDBConn->CreateStatement(NS_LITERAL_CSTRING( "SELECT user_title FROM moz_places"), getter_AddRefs(statement2)); if (NS_SUCCEEDED(rv)) { + mozStorageTransaction transaction(mDBConn, PR_FALSE); // 1. Indexes are moved along with the renamed table. Since we're dropping // that table, we're also dropping it's indexes, and later re-creating them // for the new table. @@ -1036,6 +1037,7 @@ nsNavHistory::CleanUpOnQuit() rv = mDBConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING( "DROP TABLE moz_places_backup")); NS_ENSURE_SUCCESS(rv, rv); + transaction.Commit(); } return NS_OK; }