#At file:///home/os136802/mysql/develop/repo/falcon_bug43958/ based on
revid:olav@stripped
3087 Olav Sandstaa 2009-03-31
Removed debug code used for tracing alloctions and de-allocation of Transaction
objects and
Transaction state objects.
@ storage/falcon/Transaction.cpp
Removed debug code used for tracing allocation and de-allocation of Transaction
objects.
@ storage/falcon/TransactionManager.cpp
Removed debug code used for tracing alloctions and de-allocation of Transaction
objects and
Transaction state objects.
modified:
storage/falcon/Transaction.cpp
storage/falcon/TransactionManager.cpp
=== modified file 'storage/falcon/Transaction.cpp'
--- a/storage/falcon/Transaction.cpp 2009-03-31 09:15:53 +0000
+++ b/storage/falcon/Transaction.cpp 2009-03-31 09:25:28 +0000
@@ -52,10 +52,6 @@
extern uint falcon_lock_wait_timeout;
-extern volatile int tAlloc; // These are temporary for debug tracing
-extern volatile int tDelete; // of number of allocated transaction objects.
-
-
static const char *stateNames [] = {
"Active",
"Limbo",
@@ -85,8 +81,6 @@ static const char THIS_FILE[]=__FILE__;
Transaction::Transaction(Connection *cnct, TransId seq)
{
- tAlloc++;
-
savePoints = NULL;
freeSavePoints = NULL;
useCount = 1;
@@ -168,8 +162,6 @@ void Transaction::initialize(Connection*
Transaction::~Transaction()
{
- tDelete++;
-
if (transactionState->state == Active)
{
Log::debug("Deleting apparently active transaction %d\n", transactionId);
=== modified file 'storage/falcon/TransactionManager.cpp'
--- a/storage/falcon/TransactionManager.cpp 2009-03-25 22:11:35 +0000
+++ b/storage/falcon/TransactionManager.cpp 2009-03-31 09:25:28 +0000
@@ -38,13 +38,6 @@ static const int EXTRA_TRANSACTIONS = 10
static const char THIS_FILE[]=__FILE__;
#endif
-volatile int tAlloc = 0; // Temp. will be removed. Used for tracing
-volatile int tDelete = 0; // new and delete of trans objects.
-
-// These are for debugging to trac number of object allocations
-extern volatile INTERLOCK_TYPE TSalloc;
-extern volatile INTERLOCK_TYPE TSdelete;
-
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
Attachment: [text/bzr-bundle] bzr/olav@sun.com-20090331092528-bg4qbsfszvh2i3jj.bundle
| Thread |
|---|
| • bzr commit into mysql-6.0-falcon-team branch (olav:3087) | Olav Sandstaa | 31 Mar 2009 |