Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9b50ee3a
Commit
9b50ee3a
authored
Feb 12, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wl1292 - ndb autotest
Fix 4.1 memleak in Hugo
parent
7a08f3cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
16 deletions
+1
-16
ndb/test/include/HugoOperations.hpp
ndb/test/include/HugoOperations.hpp
+1
-1
ndb/test/src/HugoTransactions.cpp
ndb/test/src/HugoTransactions.cpp
+0
-15
No files found.
ndb/test/include/HugoOperations.hpp
View file @
9b50ee3a
...
@@ -100,7 +100,7 @@ protected:
...
@@ -100,7 +100,7 @@ protected:
struct
RsPair
{
NdbResultSet
*
m_result_set
;
int
records
;
};
struct
RsPair
{
NdbResultSet
*
m_result_set
;
int
records
;
};
Vector
<
RsPair
>
m_result_sets
;
Vector
<
RsPair
>
m_result_sets
;
Vector
<
RsPair
>
m_executed_result_sets
;
Vector
<
RsPair
>
m_executed_result_sets
;
private:
NdbConnection
*
pTrans
;
NdbConnection
*
pTrans
;
};
};
...
...
ndb/test/src/HugoTransactions.cpp
View file @
9b50ee3a
...
@@ -40,7 +40,6 @@ HugoTransactions::scanReadRecords(Ndb* pNdb,
...
@@ -40,7 +40,6 @@ HugoTransactions::scanReadRecords(Ndb* pNdb,
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
const
int
retryMax
=
100
;
int
check
,
a
;
int
check
,
a
;
NdbConnection
*
pTrans
;
NdbScanOperation
*
pOp
;
NdbScanOperation
*
pOp
;
while
(
true
){
while
(
true
){
...
@@ -196,7 +195,6 @@ HugoTransactions::scanReadRecords(Ndb* pNdb,
...
@@ -196,7 +195,6 @@ HugoTransactions::scanReadRecords(Ndb* pNdb,
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
const
int
retryMax
=
100
;
int
check
,
a
;
int
check
,
a
;
NdbConnection
*
pTrans
;
NdbIndexScanOperation
*
pOp
;
NdbIndexScanOperation
*
pOp
;
while
(
true
){
while
(
true
){
...
@@ -369,7 +367,6 @@ HugoTransactions::scanUpdateRecords1(Ndb* pNdb,
...
@@ -369,7 +367,6 @@ HugoTransactions::scanUpdateRecords1(Ndb* pNdb,
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
const
int
retryMax
=
100
;
int
check
,
a
;
int
check
,
a
;
NdbConnection
*
pTrans
;
NdbOperation
*
pOp
;
NdbOperation
*
pOp
;
...
@@ -536,7 +533,6 @@ HugoTransactions::scanUpdateRecords2(Ndb* pNdb,
...
@@ -536,7 +533,6 @@ HugoTransactions::scanUpdateRecords2(Ndb* pNdb,
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
const
int
retryMax
=
100
;
int
check
,
a
;
int
check
,
a
;
NdbConnection
*
pTrans
;
NdbOperation
*
pOp
;
NdbOperation
*
pOp
;
...
@@ -619,7 +615,6 @@ HugoTransactions::scanUpdateRecords2(Ndb* pNdb,
...
@@ -619,7 +615,6 @@ HugoTransactions::scanUpdateRecords2(Ndb* pNdb,
int
eof
;
int
eof
;
int
rows
=
0
;
int
rows
=
0
;
NdbConnection
*
pUpTrans
;
while
((
eof
=
pTrans
->
nextScanResult
(
true
))
==
0
){
while
((
eof
=
pTrans
->
nextScanResult
(
true
))
==
0
){
pUpTrans
=
pNdb
->
startTransaction
();
pUpTrans
=
pNdb
->
startTransaction
();
...
@@ -702,7 +697,6 @@ HugoTransactions::scanUpdateRecords3(Ndb* pNdb,
...
@@ -702,7 +697,6 @@ HugoTransactions::scanUpdateRecords3(Ndb* pNdb,
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
const
int
retryMax
=
100
;
int
check
,
a
;
int
check
,
a
;
NdbConnection
*
pTrans
;
NdbScanOperation
*
pOp
;
NdbScanOperation
*
pOp
;
...
@@ -846,7 +840,6 @@ HugoTransactions::loadTable(Ndb* pNdb,
...
@@ -846,7 +840,6 @@ HugoTransactions::loadTable(Ndb* pNdb,
int
check
,
a
;
int
check
,
a
;
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
int
retryMax
=
5
;
int
retryMax
=
5
;
NdbConnection
*
pTrans
;
NdbOperation
*
pOp
;
NdbOperation
*
pOp
;
bool
first_batch
=
true
;
bool
first_batch
=
true
;
...
@@ -992,7 +985,6 @@ HugoTransactions::fillTable(Ndb* pNdb,
...
@@ -992,7 +985,6 @@ HugoTransactions::fillTable(Ndb* pNdb,
int
check
,
a
,
b
;
int
check
,
a
,
b
;
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
int
retryMax
=
5
;
int
retryMax
=
5
;
NdbConnection
*
pTrans
;
NdbOperation
*
pOp
;
NdbOperation
*
pOp
;
g_info
<<
"|- Inserting records..."
<<
endl
;
g_info
<<
"|- Inserting records..."
<<
endl
;
...
@@ -1384,7 +1376,6 @@ HugoTransactions::pkReadRecords(Ndb* pNdb,
...
@@ -1384,7 +1376,6 @@ HugoTransactions::pkReadRecords(Ndb* pNdb,
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
const
int
retryMax
=
100
;
int
check
,
a
;
int
check
,
a
;
NdbConnection
*
pTrans
;
NdbOperation
*
pOp
;
NdbOperation
*
pOp
;
if
(
batchsize
==
0
)
{
if
(
batchsize
==
0
)
{
...
@@ -1521,7 +1512,6 @@ HugoTransactions::pkUpdateRecords(Ndb* pNdb,
...
@@ -1521,7 +1512,6 @@ HugoTransactions::pkUpdateRecords(Ndb* pNdb,
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
const
int
retryMax
=
100
;
int
check
,
a
,
b
;
int
check
,
a
,
b
;
NdbConnection
*
pTrans
;
NdbOperation
*
pOp
;
NdbOperation
*
pOp
;
allocRows
(
batch
);
allocRows
(
batch
);
...
@@ -1689,7 +1679,6 @@ HugoTransactions::pkInterpretedUpdateRecords(Ndb* pNdb,
...
@@ -1689,7 +1679,6 @@ HugoTransactions::pkInterpretedUpdateRecords(Ndb* pNdb,
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
const
int
retryMax
=
100
;
int
check
,
a
;
int
check
,
a
;
NdbConnection
*
pTrans
;
while
(
r
<
records
){
while
(
r
<
records
){
...
@@ -1868,7 +1857,6 @@ HugoTransactions::pkDelRecords(Ndb* pNdb,
...
@@ -1868,7 +1857,6 @@ HugoTransactions::pkDelRecords(Ndb* pNdb,
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
const
int
retryMax
=
100
;
int
check
,
a
;
int
check
,
a
;
NdbConnection
*
pTrans
;
NdbOperation
*
pOp
;
NdbOperation
*
pOp
;
g_info
<<
"|- Deleting records..."
<<
endl
;
g_info
<<
"|- Deleting records..."
<<
endl
;
...
@@ -1983,7 +1971,6 @@ HugoTransactions::lockRecords(Ndb* pNdb,
...
@@ -1983,7 +1971,6 @@ HugoTransactions::lockRecords(Ndb* pNdb,
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
const
int
retryMax
=
100
;
int
check
,
a
,
b
;
int
check
,
a
,
b
;
NdbConnection
*
pTrans
;
NdbOperation
*
pOp
;
NdbOperation
*
pOp
;
// Calculate how many records to lock in each batch
// Calculate how many records to lock in each batch
...
@@ -2130,7 +2117,6 @@ HugoTransactions::indexReadRecords(Ndb* pNdb,
...
@@ -2130,7 +2117,6 @@ HugoTransactions::indexReadRecords(Ndb* pNdb,
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
const
int
retryMax
=
100
;
int
check
,
a
;
int
check
,
a
;
NdbConnection
*
pTrans
;
NdbOperation
*
pOp
;
NdbOperation
*
pOp
;
NdbIndexScanOperation
*
sOp
;
NdbIndexScanOperation
*
sOp
;
NdbResultSet
*
rs
;
NdbResultSet
*
rs
;
...
@@ -2281,7 +2267,6 @@ HugoTransactions::indexUpdateRecords(Ndb* pNdb,
...
@@ -2281,7 +2267,6 @@ HugoTransactions::indexUpdateRecords(Ndb* pNdb,
int
retryAttempt
=
0
;
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
const
int
retryMax
=
100
;
int
check
,
a
,
b
;
int
check
,
a
,
b
;
NdbConnection
*
pTrans
;
NdbOperation
*
pOp
;
NdbOperation
*
pOp
;
NdbScanOperation
*
sOp
;
NdbScanOperation
*
sOp
;
NdbResultSet
*
rs
;
NdbResultSet
*
rs
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment