From 61e3fea2cf6faa652c2a242f170dd7e3ad222696 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 24 Mar 2006 08:58:40 +0100 Subject: [PATCH] ndb - merge fixes storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp: merge storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: merge storage/ndb/src/ndbapi/NdbTransaction.cpp: merge storage/ndb/src/ndbapi/Ndbif.cpp: merge --- .../ndb/src/kernel/blocks/dbdih/DbdihMain.cpp | 2 +- .../ndb/src/kernel/blocks/dblqh/DblqhMain.cpp | 165 ------------------ storage/ndb/src/ndbapi/NdbTransaction.cpp | 2 +- storage/ndb/src/ndbapi/Ndbif.cpp | 2 +- 4 files changed, 3 insertions(+), 168 deletions(-) diff --git a/storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp b/storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp index 3ebf3cb357b..fbee5f39c0e 100644 --- a/storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp +++ b/storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp @@ -13827,7 +13827,7 @@ Dbdih::execDUMP_STATE_ORD(Signal* signal) if (signal->getLength() == 1) { const ndb_mgm_configuration_iterator * p = - theConfiguration.getOwnConfigIterator(); + m_ctx.m_config.getOwnConfigIterator(); ndbrequire(p != 0); ndb_mgm_get_int_parameter(p, CFG_DB_GCP_INTERVAL, &cgcpDelay); } diff --git a/storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp b/storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp index 8528f48c8ac..69db36c8517 100644 --- a/storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp +++ b/storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp @@ -18198,171 +18198,6 @@ Dblqh::execDUMP_STATE_ORD(Signal* signal) return; } - TcConnectionrec *regTcConnectionrec = tcConnectionrec; - Uint32 ttcConnectrecFileSize = ctcConnectrecFileSize; - if(arg == 2306) - { - for(Uint32 i = 0; i<1024; i++) - { - TcConnectionrecPtr tcRec; - tcRec.i = ctransidHash[i]; - while(tcRec.i != RNIL) - { - ptrCheckGuard(tcRec, ttcConnectrecFileSize, regTcConnectionrec); - ndbout << "TcConnectionrec " << tcRec.i; - signal->theData[0] = 2307; - signal->theData[1] = tcRec.i; - execDUMP_STATE_ORD(signal); - tcRec.i = tcRec.p->nextHashRec; - } - } - } - - if(arg == 2307 || arg == 2308) - { - TcConnectionrecPtr tcRec; - tcRec.i = signal->theData[1]; - ptrCheckGuard(tcRec, ttcConnectrecFileSize, regTcConnectionrec); - - ndbout << " transactionState = " << tcRec.p->transactionState<args[0] == DumpStateOrd::LCPContinue){ diff --git a/storage/ndb/src/ndbapi/NdbTransaction.cpp b/storage/ndb/src/ndbapi/NdbTransaction.cpp index 7c5c391d06b..93dbfcebb72 100644 --- a/storage/ndb/src/ndbapi/NdbTransaction.cpp +++ b/storage/ndb/src/ndbapi/NdbTransaction.cpp @@ -434,7 +434,7 @@ NdbTransaction::executeNoBlobs(ExecType aTypeOfExec, //------------------------------------------------------------------------ Ndb* tNdb = theNdb; - Uint32 timeout = TransporterFacade::instance()->m_waitfor_timeout; + Uint32 timeout = theNdb->theImpl->m_transporter_facade->m_waitfor_timeout; m_waitForReply = false; executeAsynchPrepare(aTypeOfExec, NULL, NULL, abortOption); if (m_waitForReply){ diff --git a/storage/ndb/src/ndbapi/Ndbif.cpp b/storage/ndb/src/ndbapi/Ndbif.cpp index 14440bcc8b7..b0692eb8236 100644 --- a/storage/ndb/src/ndbapi/Ndbif.cpp +++ b/storage/ndb/src/ndbapi/Ndbif.cpp @@ -1055,7 +1055,7 @@ Ndb::pollCompleted(NdbTransaction** aCopyArray) void Ndb::check_send_timeout() { - Uint32 timeout = TransporterFacade::instance()->m_waitfor_timeout; + Uint32 timeout = theImpl->m_transporter_facade->m_waitfor_timeout; NDB_TICKS current_time = NdbTick_CurrentMillisecond(); assert(current_time >= the_last_check_time); if (current_time - the_last_check_time > 1000) {