Commit 6fd6e7c8 authored by mtaylor@solace.(none)'s avatar mtaylor@solace.(none)

Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb

into  solace.(none):/home/mtaylor/src/mysql/mysql-5.1-new-ndb
parents 261c77a0 f178f725
...@@ -842,6 +842,9 @@ protected: ...@@ -842,6 +842,9 @@ protected:
virtual ~NdbOperation(); virtual ~NdbOperation();
void next(NdbOperation*); // Set next pointer void next(NdbOperation*); // Set next pointer
NdbOperation* next(); // Get next pointer NdbOperation* next(); // Get next pointer
NdbTransation* getNdbTransaction();
public: public:
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
const NdbOperation* next() const; const NdbOperation* next() const;
......
...@@ -17,7 +17,8 @@ class Ndb; ...@@ -17,7 +17,8 @@ class Ndb;
class NdbPool; class NdbPool;
bool bool
create_instance(Uint32 max_ndb_objects, create_instance(Ndb_cluster_connection* cc,
Uint32 max_ndb_objects,
Uint32 no_conn_obj, Uint32 no_conn_obj,
Uint32 init_no_ndb_objects); Uint32 init_no_ndb_objects);
......
...@@ -191,6 +191,7 @@ public: ...@@ -191,6 +191,7 @@ public:
*/ */
const class NdbError & getNdbError() const; const class NdbError & getNdbError() const;
NdbOperation * getNdbOperation();
private: private:
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL #ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
friend class NdbScanFilterImpl; friend class NdbScanFilterImpl;
......
...@@ -170,6 +170,13 @@ public: ...@@ -170,6 +170,13 @@ public:
#endif #endif
}; };
/**
* Convenience method to fetch this transactions Ndb* object
*/
Ndb * getNdb() {
return theNdb;
}
#ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED #ifndef DOXYGEN_SHOULD_SKIP_DEPRECATED
/** /**
* Get an NdbOperation for a table. * Get an NdbOperation for a table.
......
...@@ -429,3 +429,9 @@ NdbOperation::getTable() const ...@@ -429,3 +429,9 @@ NdbOperation::getTable() const
{ {
return m_currentTable; return m_currentTable;
} }
NdbTransaction*
NdbOperation::getNdbTransaction()
{
return theNdbCon;
}
...@@ -348,6 +348,10 @@ NdbScanFilter::isfalse(){ ...@@ -348,6 +348,10 @@ NdbScanFilter::isfalse(){
return 0; return 0;
} }
NdbOperation *
NdbScanFilter::getNdbOperation(){
return m_impl.m_operation;
}
#define action(x, y, z) #define action(x, y, z)
......
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