summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2005-02-12 15:12:53 +0100
committerunknown <joreland@mysql.com>2005-02-12 15:12:53 +0100
commite03b7bd8798eba3d6de2835e3a73c99ea0a08d6e (patch)
treeaa3eea3310de553145dd75cc454651bd078b0fa7
parent3ca04269c93487f6c41f849e5cbc3e43677cd52e (diff)
downloadmariadb-git-e03b7bd8798eba3d6de2835e3a73c99ea0a08d6e.tar.gz
wl1292 - ndb autotest
Fix 4.1 memleak in Hugo ndb/test/include/HugoOperations.hpp: Fix mem leak in Hugo ndb/test/src/HugoTransactions.cpp: Fix mem leak in Hugo
-rw-r--r--ndb/test/include/HugoOperations.hpp2
-rw-r--r--ndb/test/src/HugoTransactions.cpp15
2 files changed, 1 insertions, 16 deletions
diff --git a/ndb/test/include/HugoOperations.hpp b/ndb/test/include/HugoOperations.hpp
index 9ca2772e768..a23d3018f47 100644
--- a/ndb/test/include/HugoOperations.hpp
+++ b/ndb/test/include/HugoOperations.hpp
@@ -100,7 +100,7 @@ protected:
struct RsPair { NdbResultSet* m_result_set; int records; };
Vector<RsPair> m_result_sets;
Vector<RsPair> m_executed_result_sets;
-private:
+
NdbConnection* pTrans;
};
diff --git a/ndb/test/src/HugoTransactions.cpp b/ndb/test/src/HugoTransactions.cpp
index 85c96ef0f7f..5d5b2fa99df 100644
--- a/ndb/test/src/HugoTransactions.cpp
+++ b/ndb/test/src/HugoTransactions.cpp
@@ -40,7 +40,6 @@ HugoTransactions::scanReadRecords(Ndb* pNdb,
int retryAttempt = 0;
const int retryMax = 100;
int check, a;
- NdbConnection *pTrans;
NdbScanOperation *pOp;
while (true){
@@ -196,7 +195,6 @@ HugoTransactions::scanReadRecords(Ndb* pNdb,
int retryAttempt = 0;
const int retryMax = 100;
int check, a;
- NdbConnection *pTrans;
NdbIndexScanOperation *pOp;
while (true){
@@ -369,7 +367,6 @@ HugoTransactions::scanUpdateRecords1(Ndb* pNdb,
int retryAttempt = 0;
const int retryMax = 100;
int check, a;
- NdbConnection *pTrans;
NdbOperation *pOp;
@@ -536,7 +533,6 @@ HugoTransactions::scanUpdateRecords2(Ndb* pNdb,
int retryAttempt = 0;
const int retryMax = 100;
int check, a;
- NdbConnection *pTrans;
NdbOperation *pOp;
@@ -619,7 +615,6 @@ HugoTransactions::scanUpdateRecords2(Ndb* pNdb,
int eof;
int rows = 0;
- NdbConnection* pUpTrans;
while((eof = pTrans->nextScanResult(true)) == 0){
pUpTrans = pNdb->startTransaction();
@@ -702,7 +697,6 @@ HugoTransactions::scanUpdateRecords3(Ndb* pNdb,
int retryAttempt = 0;
const int retryMax = 100;
int check, a;
- NdbConnection *pTrans;
NdbScanOperation *pOp;
@@ -846,7 +840,6 @@ HugoTransactions::loadTable(Ndb* pNdb,
int check, a;
int retryAttempt = 0;
int retryMax = 5;
- NdbConnection *pTrans;
NdbOperation *pOp;
bool first_batch = true;
@@ -992,7 +985,6 @@ HugoTransactions::fillTable(Ndb* pNdb,
int check, a, b;
int retryAttempt = 0;
int retryMax = 5;
- NdbConnection *pTrans;
NdbOperation *pOp;
g_info << "|- Inserting records..." << endl;
@@ -1384,7 +1376,6 @@ HugoTransactions::pkReadRecords(Ndb* pNdb,
int retryAttempt = 0;
const int retryMax = 100;
int check, a;
- NdbConnection *pTrans;
NdbOperation *pOp;
if (batchsize == 0) {
@@ -1521,7 +1512,6 @@ HugoTransactions::pkUpdateRecords(Ndb* pNdb,
int retryAttempt = 0;
const int retryMax = 100;
int check, a, b;
- NdbConnection *pTrans;
NdbOperation *pOp;
allocRows(batch);
@@ -1689,7 +1679,6 @@ HugoTransactions::pkInterpretedUpdateRecords(Ndb* pNdb,
int retryAttempt = 0;
const int retryMax = 100;
int check, a;
- NdbConnection *pTrans;
while (r < records){
@@ -1868,7 +1857,6 @@ HugoTransactions::pkDelRecords(Ndb* pNdb,
int retryAttempt = 0;
const int retryMax = 100;
int check, a;
- NdbConnection *pTrans;
NdbOperation *pOp;
g_info << "|- Deleting records..." << endl;
@@ -1983,7 +1971,6 @@ HugoTransactions::lockRecords(Ndb* pNdb,
int retryAttempt = 0;
const int retryMax = 100;
int check, a, b;
- NdbConnection *pTrans;
NdbOperation *pOp;
// Calculate how many records to lock in each batch
@@ -2130,7 +2117,6 @@ HugoTransactions::indexReadRecords(Ndb* pNdb,
int retryAttempt = 0;
const int retryMax = 100;
int check, a;
- NdbConnection *pTrans;
NdbOperation *pOp;
NdbIndexScanOperation *sOp;
NdbResultSet * rs;
@@ -2281,7 +2267,6 @@ HugoTransactions::indexUpdateRecords(Ndb* pNdb,
int retryAttempt = 0;
const int retryMax = 100;
int check, a, b;
- NdbConnection *pTrans;
NdbOperation *pOp;
NdbScanOperation * sOp;
NdbResultSet * rs;