List:Commits« Previous MessageNext Message »
From:jon Date:September 2 2008 7:34pm
Subject:svn commit - mysqldoc@docsrva: r11641 - trunk/ndbapi
View as plain text  
Author: jstephens
Date: 2008-09-02 19:34:12 +0200 (Tue, 02 Sep 2008)
New Revision: 11641

Log:

What happens if you don't commit the transaction before closing it

(Thanks, Frazer & Oli!)



Modified:
   trunk/ndbapi/class-ndb.xml
   trunk/ndbapi/class-ndbtransaction.xml


Modified: trunk/ndbapi/class-ndb.xml
===================================================================
--- trunk/ndbapi/class-ndb.xml	2008-09-02 16:24:54 UTC (rev 11640)
+++ trunk/ndbapi/class-ndb.xml	2008-09-02 17:34:12 UTC (rev 11641)
Changed blocks: 2, Lines Added: 11, Lines Deleted: 3; 1147 bytes

@@ -878,9 +878,9 @@
         <para>
           When the transaction is completed it must be closed using
           <literal>NdbTransaction::close()</literal> or
-          <literal>Ndb::closeTransaction()</literal>. This must be done
-          regardless of the transaction's final outcome, even if it
-          fails due to an error.
+          <literal>Ndb::closeTransaction()</literal>. Failure to do so
+          aborts the transaction. This must be done regardless of the
+          transaction's final outcome, even if it fails due to an error.
         </para>
 
         <para>

@@ -1192,6 +1192,14 @@
 
       </formalpara>
 
+      <important>
+        <para>
+          If the transaction has not yet been committed, it is aborted
+          when this method is called. See
+          <xref linkend="class-ndb-starttransaction"/>.
+        </para>
+      </important>
+
       <formalpara>
 
         <title>Signature</title>


Modified: trunk/ndbapi/class-ndbtransaction.xml
===================================================================
--- trunk/ndbapi/class-ndbtransaction.xml	2008-09-02 16:24:54 UTC (rev 11640)
+++ trunk/ndbapi/class-ndbtransaction.xml	2008-09-02 17:34:12 UTC (rev 11641)
Changed blocks: 1, Lines Added: 8, Lines Deleted: 0; 603 bytes

@@ -1275,6 +1275,14 @@
 
       </formalpara>
 
+      <important>
+        <para>
+          If the transaction has not yet been committed, it is aborted
+          when this method is called. See
+          <xref linkend="class-ndb-starttransaction"/>.
+        </para>
+      </important>
+
       <formalpara>
 
         <title>Signature</title>


Thread
svn commit - mysqldoc@docsrva: r11641 - trunk/ndbapijon2 Sep