mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 389876 followup (r+a=mconnor)
This commit is contained in:
parent
fc4cea3261
commit
b503e88c4f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user