List:Commits« Previous MessageNext Message »
From:Jonas Oreland Date:January 26 2012 6:33am
Subject:bzr push into mysql-5.1-telco-7.0 branch (jonas.oreland:4825 to 4826)
Bug#12825405
View as plain text  
 4826 Jonas Oreland	2012-01-26
      ndb - bug#12825405 - fix slave vs. MaxDMLOperationsPerTransaction...in ugliest possible way

    modified:
      storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
 4825 Frazer Clement	2012-01-25 [merge]
      Merge

    modified:
      storage/ndb/src/kernel/vm/mt.cpp
=== modified file 'storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp'
--- a/storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp	2012-01-17 15:21:49 +0000
+++ b/storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp	2012-01-26 06:33:02 +0000
@@ -3069,7 +3069,16 @@ void Dbtc::execTCKEYREQ(Signal* signal)
     case ZWRITE:
     case ZREFRESH:
       jam();
-      if (unlikely((++ regApiPtr->m_write_count) > m_max_writes_per_trans))
+      regApiPtr->m_write_count++;
+      if (regApiPtr->m_flags & ApiConnectRecord::TF_DEFERRED_CONSTRAINTS)
+      {
+        /**
+         * Allow slave applier to ignore m_max_writes_per_trans
+         */
+        break;
+      }
+
+      if (unlikely(regApiPtr->m_write_count > m_max_writes_per_trans))
       {
         TCKEY_abort(signal, 65);
         return;

No bundle (reason: useless for push emails).
Thread
bzr push into mysql-5.1-telco-7.0 branch (jonas.oreland:4825 to 4826)Bug#12825405Jonas Oreland30 Jan