From: John David Duncan Date: April 18 2011 11:20pm Subject: bzr commit into mysql-5.1-telco-7.2 branch (john.duncan:4160) List-Archive: http://lists.mysql.com/commits/135682 Message-Id: <201104182321.p3INL0MW018359@acsmt357.oracle.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0740653484==" --===============0740653484== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline #At file:///Users/jdd/bzr-repo/cluster-7.2-labs-memcached/ based on revid:john.duncan@stripped 4160 John David Duncan 2011-04-18 Add Ndb Custom Data ptr modified: storage/ndb/include/ndbapi/Ndb.hpp storage/ndb/src/ndbapi/Ndb.cpp storage/ndb/src/ndbapi/NdbImpl.hpp storage/ndb/src/ndbapi/Ndbinit.cpp === modified file 'storage/ndb/include/ndbapi/Ndb.hpp' --- a/storage/ndb/include/ndbapi/Ndb.hpp 2011-02-09 14:59:39 +0000 +++ b/storage/ndb/include/ndbapi/Ndb.hpp 2011-04-18 23:20:12 +0000 @@ -1802,6 +1802,10 @@ public: Uint64 getClientStat(Uint32 id) const; const char* getClientStatName(Uint32 id) const; + + /* Get/Set per-Ndb custom data pointer */ + void setCustomData(void*); + void* getCustomData() const; #endif private: === modified file 'storage/ndb/src/ndbapi/Ndb.cpp' --- a/storage/ndb/src/ndbapi/Ndb.cpp 2011-02-10 07:55:45 +0000 +++ b/storage/ndb/src/ndbapi/Ndb.cpp 2011-04-18 23:20:12 +0000 @@ -2242,3 +2242,15 @@ Ndb::getClientStatName(Uint32 id) const return NULL; } + +void +Ndb::setCustomData(void* _customDataPtr) +{ + theImpl->customDataPtr = _customDataPtr; +} + +void* +Ndb::getCustomData() const +{ + return theImpl->customDataPtr; +} === modified file 'storage/ndb/src/ndbapi/NdbImpl.hpp' --- a/storage/ndb/src/ndbapi/NdbImpl.hpp 2011-02-09 14:59:39 +0000 +++ b/storage/ndb/src/ndbapi/NdbImpl.hpp 2011-04-18 23:20:12 +0000 @@ -125,6 +125,7 @@ public: BaseString m_systemPrefix; // Buffer for preformatted for // + void* customDataPtr; Uint64 clientStats[ Ndb::NumClientStatistics ]; inline void incClientStat(const Ndb::ClientStatistics stat, const Uint64 inc) { @@ -598,5 +599,4 @@ NdbImpl::sendFragmentedSignal(NdbApiSign } return -1; } - #endif === modified file 'storage/ndb/src/ndbapi/Ndbinit.cpp' --- a/storage/ndb/src/ndbapi/Ndbinit.cpp 2011-02-04 17:52:38 +0000 +++ b/storage/ndb/src/ndbapi/Ndbinit.cpp 2011-04-18 23:20:12 +0000 @@ -192,7 +192,8 @@ NdbImpl::NdbImpl(Ndb_cluster_connection 1024,1024), theNoOfDBnodes(0), theWaiter(this), - m_ev_op(0) + m_ev_op(0), + customDataPtr(0) { int i; for (i = 0; i < MAX_NDB_NODES; i++) { --===============0740653484== MIME-Version: 1.0 Content-Type: text/bzr-bundle; charset="us-ascii"; name="bzr/john.duncan@stripped" Content-Transfer-Encoding: 7bit Content-Disposition: inline # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: john.duncan@stripped # target_branch: file:///Users/jdd/bzr-repo/cluster-7.2-labs-\ # memcached/ # testament_sha1: 0856a9ea4b981b8188a0e3cc8bf2f426ed646bfd # timestamp: 2011-04-18 16:20:55 -0700 # source_branch: file:///Users/jdd/bzr-repo/working/5.1-telco-7.2/ # base_revision_id: john.duncan@stripped\ # axkg92mz44dxble3 # # Begin bundle IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWW4sixgAAz7fgEAQUHf//36x SAC////6YAa33kAAAAAAAAcwCaYBMhgACYJgAABEmmmiaNoyjT0jRoYQGTE0Bo0yaHMAmmATIYAA mCYAAANU/SEmjRk0MmgBoAAA00ABzAJpgEyGAAJgmAAACSQQAE0aZDSZNNNEwkxTI2p5TZqgwbva M6TOAPBiH3T1y86gJheM6NF4ZitqCBByqnYTQsIQOMB9+C0vi6hpKU6h8rH4qsMxQAnqfvD6heDA zEkkiaUNTnWIaRfUEUxB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