[html5] r3651 - [] (0) Ensure that the version number only gets bumped if the transaction commit [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Aug 17 19:57:54 PDT 2009


Author: ianh
Date: 2009-08-17 19:57:54 -0700 (Mon, 17 Aug 2009)
New Revision: 3651

Modified:
   source
Log:
[] (0) Ensure that the version number only gets bumped if the transaction commits properly.

Modified: source
===================================================================
--- source	2009-08-18 01:13:27 UTC (rev 3650)
+++ source	2009-08-18 02:57:54 UTC (rev 3651)
@@ -61163,18 +61163,22 @@
 
    </li>
 
-   <li><p>If a <i>postflight operation</i> was defined for this
-   instance of the transaction steps, run that. If it fails, then jump
-   to the last step. <!--The operation, if any, might depend
-   <i>callback-canceled</i>.--> (This is basically a hook for the
-   <code title="dom-database-changeVersion">changeVersion()</code>
-   method.)</p></li>
+   <li>
 
-   <li><p>Commit the transaction.</p></li>
+    <p>If a <i>postflight operation</i> was defined for this instance
+    of the transaction steps, then: as one atomic operation, commit
+    the transaction and run the <i>postflight operation</i>. If either
+    fails, then do neither, and instead jump to the last step. (This
+    is basically a hook for the <code
+    title="dom-database-changeVersion">changeVersion()</code>
+    method.)</p>
 
-   <li><p>If an error occurred in the committing of the transaction,
-   jump to the last step.</p></li>
+    <p>Otherwise: commit the transaction and run the <i>postflight
+    operation</i>. If an error occurred in the committing of the
+    transaction, jump to the last step.</p>
 
+   </li>
+
    <li><p><span>Queue a task</span> to invoke the <i>success
    callback</i>.</p></li>
 




More information about the Commit-Watchers mailing list