Commit 0d873308 authored by unknown's avatar unknown

merge

parent 2709f215
...@@ -491,6 +491,7 @@ extern "C" { ...@@ -491,6 +491,7 @@ extern "C" {
*/ */
const char * ndb_mgm_get_node_status_string(enum ndb_mgm_node_status status); const char * ndb_mgm_get_node_status_string(enum ndb_mgm_node_status status);
const char * ndb_mgm_get_clusterlog_level_string(enum ndb_mgm_clusterlog_level);
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
ndb_mgm_event_category ndb_mgm_match_event_category(const char *); ndb_mgm_event_category ndb_mgm_match_event_category(const char *);
const char * ndb_mgm_get_event_category_string(enum ndb_mgm_event_category); const char * ndb_mgm_get_event_category_string(enum ndb_mgm_event_category);
......
...@@ -1107,13 +1107,6 @@ public: ...@@ -1107,13 +1107,6 @@ public:
*/ */
int alterTable(const Table &); int alterTable(const Table &);
/**
* Get table with given name, NULL if undefined
* @param name Name of table to get
* @return table if successful otherwise NULL.
*/
const Table * getTable(const char * name);
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
/** /**
* Invalidate cached table object * Invalidate cached table object
......
...@@ -78,7 +78,7 @@ NdbTransaction* Ndb::doConnect(Uint32 tConNode) ...@@ -78,7 +78,7 @@ NdbTransaction* Ndb::doConnect(Uint32 tConNode)
//**************************************************************************** //****************************************************************************
// We have connections now to the desired node. Return // We have connections now to the desired node. Return
//**************************************************************************** //****************************************************************************
return getConnectedNdbConnection(tNode); return getConnectedNdbTransaction(tNode);
} else if (TretCode != 0) { } else if (TretCode != 0) {
tAnyAlive= 1; tAnyAlive= 1;
}//if }//if
...@@ -103,7 +103,7 @@ NdbTransaction* Ndb::doConnect(Uint32 tConNode) ...@@ -103,7 +103,7 @@ NdbTransaction* Ndb::doConnect(Uint32 tConNode)
//**************************************************************************** //****************************************************************************
// We have connections now to the desired node. Return // We have connections now to the desired node. Return
//**************************************************************************** //****************************************************************************
return getConnectedNdbConnection(tNode); return getConnectedNdbTransaction(tNode);
} else if (TretCode != 0) { } else if (TretCode != 0) {
tAnyAlive= 1; tAnyAlive= 1;
}//if }//if
......
...@@ -89,9 +89,9 @@ Ndb::void2rec(void* val){ ...@@ -89,9 +89,9 @@ Ndb::void2rec(void* val){
} }
inline inline
NdbConnection * NdbTransaction *
Ndb::void2con(void* val){ Ndb::void2con(void* val){
return (NdbConnection*)val; return (NdbTransaction*)val;
} }
inline inline
...@@ -107,7 +107,7 @@ Ndb::void2rec_iop(void* val){ ...@@ -107,7 +107,7 @@ Ndb::void2rec_iop(void* val){
} }
inline inline
NdbConnection * NdbTransaction *
NdbReceiver::getTransaction(){ NdbReceiver::getTransaction(){
return ((NdbOperation*)m_owner)->theNdbCon; return ((NdbOperation*)m_owner)->theNdbCon;
} }
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "NdbApiSignal.hpp" #include "NdbApiSignal.hpp"
#include "NdbImpl.hpp" #include "NdbImpl.hpp"
#include <NdbTransaction.hpp>
#include <NdbOperation.hpp> #include <NdbOperation.hpp>
#include <NdbIndexOperation.hpp> #include <NdbIndexOperation.hpp>
#include <NdbScanOperation.hpp> #include <NdbScanOperation.hpp>
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <ConfigRetriever.hpp> #include <ConfigRetriever.hpp>
#include <ndb_version.h> #include <ndb_version.h>
#include <mgmapi_debug.h> #include <mgmapi_debug.h>
#include <md5_hash.hpp>
static int g_run_connect_thread= 0; static int g_run_connect_thread= 0;
...@@ -255,8 +256,6 @@ Ndb_cluster_connection_impl::Ndb_cluster_connection_impl(const char * ...@@ -255,8 +256,6 @@ Ndb_cluster_connection_impl::Ndb_cluster_connection_impl(const char *
{ {
DBUG_ENTER("Ndb_cluster_connection"); DBUG_ENTER("Ndb_cluster_connection");
DBUG_PRINT("enter",("Ndb_cluster_connection this=0x%x", this)); DBUG_PRINT("enter",("Ndb_cluster_connection this=0x%x", this));
m_transporter_facade=
TransporterFacade::theFacadeInstance= new TransporterFacade();
m_connect_thread= 0; m_connect_thread= 0;
m_connect_callback= 0; m_connect_callback= 0;
...@@ -281,6 +280,10 @@ Ndb_cluster_connection_impl::Ndb_cluster_connection_impl(const char * ...@@ -281,6 +280,10 @@ Ndb_cluster_connection_impl::Ndb_cluster_connection_impl(const char *
m_config_retriever= 0; m_config_retriever= 0;
} }
m_transporter_facade=
TransporterFacade::theFacadeInstance=
new TransporterFacade(m_config_retriever->get_mgmHandle());
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
...@@ -490,7 +493,7 @@ int Ndb_cluster_connection::connect(int no_retries, int retry_delay_in_seconds, ...@@ -490,7 +493,7 @@ int Ndb_cluster_connection::connect(int no_retries, int retry_delay_in_seconds,
m_impl.init_nodes_vector(nodeId, *props); m_impl.init_nodes_vector(nodeId, *props);
for(int i=0;i<m_impl.m_transporter_facade->get_registry()->m_transporter_interface.size();i++) for(int i=0;i<m_impl.m_transporter_facade->get_registry()->m_transporter_interface.size();i++)
ndb_mgm_set_connection_int_parameter(m_config_retriever->get_mgmHandle(), ndb_mgm_set_connection_int_parameter(m_impl.m_config_retriever->get_mgmHandle(),
nodeId, nodeId,
m_impl.m_transporter_facade->get_registry() m_impl.m_transporter_facade->get_registry()
->m_transporter_interface[i] ->m_transporter_interface[i]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment