Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Unified Diff: Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.cpp

Issue 10422005: Merge 116562 - IndexedDB: call abort handler when there are problems committing (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/Modules/indexeddb/IDBLevelDBBackingStore.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.cpp
===================================================================
--- Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.cpp (revision 118040)
+++ Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.cpp (working copy)
@@ -197,8 +197,10 @@
m_state = Finished;
closeOpenCursors();
- m_transaction->commit();
- m_callbacks->onComplete();
+ if (m_transaction->commit())
+ m_callbacks->onComplete();
+ else
+ m_callbacks->onAbort();
m_database->transactionCoordinator()->didFinishTransaction(this);
m_database->transactionFinished(this);
m_database = 0;
« no previous file with comments | « Source/WebCore/Modules/indexeddb/IDBLevelDBBackingStore.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698