From: Date: September 26 2008 2:55pm Subject: bzr commit into mysql-5.1 branch (jonas:2672) List-Archive: http://lists.mysql.com/commits/54544 Message-Id: <20080926125511.932554A4E3@perch.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit #At file:///home/jonas/src/telco-6.2/ 2672 Jonas Oreland 2008-09-26 ndb - add resource check for trix and add trix-resources into dump 8004 modified: storage/ndb/src/kernel/blocks/trix/Trix.cpp storage/ndb/src/kernel/blocks/trix/Trix.hpp === modified file 'storage/ndb/src/kernel/blocks/trix/Trix.cpp' --- a/storage/ndb/src/kernel/blocks/trix/Trix.cpp 2008-09-18 14:29:25 +0000 +++ b/storage/ndb/src/kernel/blocks/trix/Trix.cpp 2008-09-26 12:55:06 +0000 @@ -435,6 +435,27 @@ Trix::execDUMP_STATE_ORD(Signal* signal) // Ignore } } + + if (signal->theData[0] == DumpStateOrd::SchemaResourceSnapshot) + { + RSS_AP_SNAPSHOT_SAVE(c_theSubscriptionRecPool); + return; + } + + if (signal->theData[0] == DumpStateOrd::SchemaResourceCheckLeak) + { + RSS_AP_SNAPSHOT_CHECK(c_theSubscriptionRecPool); + return; + } + + if (signal->theData[0] == 8004) + { + infoEvent("TRIX: c_theSubscriptionRecPool size: %u free: %u", + c_theSubscriptionRecPool.getSize(), + c_theSubscriptionRecPool.getNoOfFree()); + return; + } + } // Build index === modified file 'storage/ndb/src/kernel/blocks/trix/Trix.hpp' --- a/storage/ndb/src/kernel/blocks/trix/Trix.hpp 2008-02-20 09:04:29 +0000 +++ b/storage/ndb/src/kernel/blocks/trix/Trix.hpp 2008-09-26 12:55:06 +0000 @@ -131,6 +131,7 @@ private: * The pool of node records */ ArrayPool c_theSubscriptionRecPool; + RSS_AP_SNAPSHOT(c_theSubscriptionRecPool); /** * The list of other subscriptions