List:Commits« Previous MessageNext Message »
From:stewart Date:July 16 2007 7:35am
Subject:[NDB patch 4/5] BUG#28804 release index operation for unique index lookup (without matching tuple) on completion of operation, not txn
View as plain text  
This also ensures we free TransactionBufferMemory. This would severely limit
the size of txns doing non-matching unique index lookups (as well as having
the related problem of full txn buff memory).

===== ndb/src/kernel/blocks/dbtc/DbtcMain.cpp 1.110 vs edited =====
Index: ndb-work/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
===================================================================
--- ndb-work.orig/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp	2007-07-12 12:43:43.272645890
+1000
+++ ndb-work/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp	2007-07-12 12:43:51.161095427 +1000
@@ -12006,6 +12006,9 @@ void Dbtc::execTCKEYREF(Signal* signal)
     tcIndxRef->transId[0] = tcKeyRef->transId[0];
     tcIndxRef->transId[1] = tcKeyRef->transId[1];
     tcIndxRef->errorCode = tcKeyRef->errorCode;
+
+    releaseIndexOperation(regApiPtr, indexOp);
+
     sendSignal(regApiPtr->ndbapiBlockref, 
                GSN_TCINDXREF, signal, TcKeyRef::SignalLength, JBB);
     return;

--
Stewart Smith
Thread
[NDB patch 0/5] Bug28804 Unknown error returned on a query using joinsstewart16 Jul
  • [NDB patch 3/5] BUG#28804 fix ha_ndbcluster::unique_index_read to properly return errorstewart16 Jul
  • [NDB patch 4/5] BUG#28804 release index operation for unique index lookup (without matching tuple) on completion of operation, not txnstewart16 Jul
  • [NDB patch 5/5] BUG#28804 Dbtc::releaseAbortResources() send returnsignal when exists.stewart16 Jul
    • Re: [NDB patch 5/5] BUG#28804 Dbtc::releaseAbortResources() sendreturnsignal when exists.Jonas Oreland16 Jul
  • [NDB patch 1/5] Test for Bug#28804stewart16 Jul
    • Re: [NDB patch 1/5] Test for Bug#28804Jonas Oreland16 Jul
  • [NDB patch 2/5] BUG#28804 improve NDBAPI behaviour in execute on timeout waiting for txn respones.stewart16 Jul
  • Re: [NDB patch 0/5] Bug28804 Unknown error returned on a queryusing joinsStewart Smith16 Jul
  • Re: [NDB patch 0/5] Bug28804 Unknown error returned on a query usingjoinsJonas Oreland16 Jul