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
81013a01
Commit
81013a01
authored
Sep 16, 2005
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb
remove extra ";" from test programs
parent
e899d411
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
26 deletions
+26
-26
ndb/test/include/NDBT_Test.hpp
ndb/test/include/NDBT_Test.hpp
+1
-1
ndb/test/ndbapi/bank/BankLoad.cpp
ndb/test/ndbapi/bank/BankLoad.cpp
+2
-2
ndb/test/ndbapi/testOIBasic.cpp
ndb/test/ndbapi/testOIBasic.cpp
+3
-3
ndb/test/src/HugoCalculator.cpp
ndb/test/src/HugoCalculator.cpp
+3
-3
ndb/test/src/NDBT_Test.cpp
ndb/test/src/NDBT_Test.cpp
+1
-1
ndb/test/src/NdbBackup.cpp
ndb/test/src/NdbBackup.cpp
+1
-1
ndb/test/src/NdbRestarts.cpp
ndb/test/src/NdbRestarts.cpp
+15
-15
No files found.
ndb/test/include/NDBT_Test.hpp
View file @
81013a01
...
@@ -426,7 +426,7 @@ C##suitname():NDBT_TestSuite(#suitname){ \
...
@@ -426,7 +426,7 @@ C##suitname():NDBT_TestSuite(#suitname){ \
pt->addTable(tableName, false);
pt->addTable(tableName, false);
#define NDBT_TESTSUITE_END(suitname) \
#define NDBT_TESTSUITE_END(suitname) \
} } ; C##suitname suitname
;
} } ; C##suitname suitname
// Helper functions for retrieving variables from NDBT_Step
// Helper functions for retrieving variables from NDBT_Step
#define GETNDB(ps) ((NDBT_NdbApiStep*)ps)->getNdb()
#define GETNDB(ps) ((NDBT_NdbApiStep*)ps)->getNdb()
...
...
ndb/test/ndbapi/bank/BankLoad.cpp
View file @
81013a01
...
@@ -321,7 +321,7 @@ int Bank::loadGl(){
...
@@ -321,7 +321,7 @@ int Bank::loadGl(){
m_ndb
.
closeTransaction
(
pTrans
);
m_ndb
.
closeTransaction
(
pTrans
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
Bank
::
getBalanceForAccountType
(
const
Uint32
accountType
,
int
Bank
::
getBalanceForAccountType
(
const
Uint32
accountType
,
...
@@ -460,7 +460,7 @@ int Bank::loadAccountType(){
...
@@ -460,7 +460,7 @@ int Bank::loadAccountType(){
m_ndb
.
closeTransaction
(
pTrans
);
m_ndb
.
closeTransaction
(
pTrans
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
/**
/**
* Load ACCOUNT table
* Load ACCOUNT table
...
...
ndb/test/ndbapi/testOIBasic.cpp
View file @
81013a01
...
@@ -2187,7 +2187,7 @@ pkinsert(Par par)
...
@@ -2187,7 +2187,7 @@ pkinsert(Par par)
}
}
con
.
closeTransaction
();
con
.
closeTransaction
();
return
0
;
return
0
;
}
;
}
static
int
static
int
pkupdate
(
Par
par
)
pkupdate
(
Par
par
)
...
@@ -2250,7 +2250,7 @@ pkupdate(Par par)
...
@@ -2250,7 +2250,7 @@ pkupdate(Par par)
}
}
con
.
closeTransaction
();
con
.
closeTransaction
();
return
0
;
return
0
;
}
;
}
static
int
static
int
pkdelete
(
Par
par
)
pkdelete
(
Par
par
)
...
@@ -2306,7 +2306,7 @@ pkdelete(Par par)
...
@@ -2306,7 +2306,7 @@ pkdelete(Par par)
}
}
con
.
closeTransaction
();
con
.
closeTransaction
();
return
0
;
return
0
;
}
;
}
static
int
static
int
pkread
(
Par
par
)
pkread
(
Par
par
)
...
...
ndb/test/src/HugoCalculator.cpp
View file @
81013a01
...
@@ -51,7 +51,7 @@ HugoCalculator::HugoCalculator(const NdbDictionary::Table& tab) : m_tab(tab) {
...
@@ -51,7 +51,7 @@ HugoCalculator::HugoCalculator(const NdbDictionary::Table& tab) : m_tab(tab) {
#endif
#endif
// Check that idCol is not conflicting with updatesCol
// Check that idCol is not conflicting with updatesCol
assert
(
m_idCol
!=
m_updatesCol
&&
m_idCol
!=
-
1
&&
m_updatesCol
!=
-
1
);
assert
(
m_idCol
!=
m_updatesCol
&&
m_idCol
!=
-
1
&&
m_updatesCol
!=
-
1
);
}
;
}
Int32
Int32
HugoCalculator
::
calcValue
(
int
record
,
HugoCalculator
::
calcValue
(
int
record
,
...
@@ -73,7 +73,7 @@ HugoCalculator::calcValue(int record,
...
@@ -73,7 +73,7 @@ HugoCalculator::calcValue(int record,
else
else
val
=
record
+
attrib
+
updates
;
val
=
record
+
attrib
+
updates
;
return
val
;
return
val
;
}
;
}
#if 0
#if 0
HugoCalculator::U_Int32 calcValue(int record, int attrib, int updates) const;
HugoCalculator::U_Int32 calcValue(int record, int attrib, int updates) const;
HugoCalculator::U_Int64 calcValue(int record, int attrib, int updates) const;
HugoCalculator::U_Int64 calcValue(int record, int attrib, int updates) const;
...
@@ -123,7 +123,7 @@ HugoCalculator::calcValue(int record,
...
@@ -123,7 +123,7 @@ HugoCalculator::calcValue(int record,
buf
[
len
]
=
0
;
buf
[
len
]
=
0
;
}
}
return
buf
;
return
buf
;
}
;
}
int
int
HugoCalculator
::
verifyRowValues
(
NDBT_ResultRow
*
const
pRow
)
const
{
HugoCalculator
::
verifyRowValues
(
NDBT_ResultRow
*
const
pRow
)
const
{
...
...
ndb/test/src/NDBT_Test.cpp
View file @
81013a01
...
@@ -624,7 +624,7 @@ int NDBT_TestCase::execute(NDBT_Context* ctx){
...
@@ -624,7 +624,7 @@ int NDBT_TestCase::execute(NDBT_Context* ctx){
<<
endl
;
<<
endl
;
}
}
return
res
;
return
res
;
}
;
}
void
NDBT_TestCase
::
startTimer
(
NDBT_Context
*
ctx
){
void
NDBT_TestCase
::
startTimer
(
NDBT_Context
*
ctx
){
...
...
ndb/test/src/NdbBackup.cpp
View file @
81013a01
...
@@ -345,7 +345,7 @@ NdbBackup::NF(NdbRestarter& _restarter, int *NFDuringBackup_codes, const int sz,
...
@@ -345,7 +345,7 @@ NdbBackup::NF(NdbRestarter& _restarter, int *NFDuringBackup_codes, const int sz,
}
}
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
int
FailS_codes
[]
=
{
FailS_codes
[]
=
{
...
...
ndb/test/src/NdbRestarts.cpp
View file @
81013a01
...
@@ -213,7 +213,7 @@ NdbRestarts::NdbRestart::NdbRestart(const char* _name,
...
@@ -213,7 +213,7 @@ NdbRestarts::NdbRestart::NdbRestart(const char* _name,
m_restartFunc
=
_func
;
m_restartFunc
=
_func
;
m_numRequiredNodes
=
_requiredNodes
;
m_numRequiredNodes
=
_requiredNodes
;
// m_arg1 = arg1;
// m_arg1 = arg1;
}
;
}
int
NdbRestarts
::
getNumRestarts
(){
int
NdbRestarts
::
getNumRestarts
(){
...
@@ -367,7 +367,7 @@ int restartRandomNodeGraceful(NdbRestarter& _restarter,
...
@@ -367,7 +367,7 @@ int restartRandomNodeGraceful(NdbRestarter& _restarter,
"Could not restart node "
<<
nodeId
);
"Could not restart node "
<<
nodeId
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
restartRandomNodeAbort
(
NdbRestarter
&
_restarter
,
int
restartRandomNodeAbort
(
NdbRestarter
&
_restarter
,
const
NdbRestarts
::
NdbRestart
*
_restart
){
const
NdbRestarts
::
NdbRestart
*
_restart
){
...
@@ -382,7 +382,7 @@ int restartRandomNodeAbort(NdbRestarter& _restarter,
...
@@ -382,7 +382,7 @@ int restartRandomNodeAbort(NdbRestarter& _restarter,
"Could not restart node "
<<
nodeId
);
"Could not restart node "
<<
nodeId
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
restartRandomNodeError
(
NdbRestarter
&
_restarter
,
int
restartRandomNodeError
(
NdbRestarter
&
_restarter
,
const
NdbRestarts
::
NdbRestart
*
_restart
){
const
NdbRestarts
::
NdbRestart
*
_restart
){
...
@@ -397,7 +397,7 @@ int restartRandomNodeError(NdbRestarter& _restarter,
...
@@ -397,7 +397,7 @@ int restartRandomNodeError(NdbRestarter& _restarter,
"Could not restart node "
<<
nodeId
);
"Could not restart node "
<<
nodeId
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
restartMasterNodeError
(
NdbRestarter
&
_restarter
,
int
restartMasterNodeError
(
NdbRestarter
&
_restarter
,
const
NdbRestarts
::
NdbRestart
*
_restart
){
const
NdbRestarts
::
NdbRestart
*
_restart
){
...
@@ -410,7 +410,7 @@ int restartMasterNodeError(NdbRestarter& _restarter,
...
@@ -410,7 +410,7 @@ int restartMasterNodeError(NdbRestarter& _restarter,
"Could not restart node "
<<
nodeId
);
"Could not restart node "
<<
nodeId
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
restartRandomNodeInitial
(
NdbRestarter
&
_restarter
,
int
restartRandomNodeInitial
(
NdbRestarter
&
_restarter
,
const
NdbRestarts
::
NdbRestart
*
_restart
){
const
NdbRestarts
::
NdbRestart
*
_restart
){
...
@@ -425,7 +425,7 @@ int restartRandomNodeInitial(NdbRestarter& _restarter,
...
@@ -425,7 +425,7 @@ int restartRandomNodeInitial(NdbRestarter& _restarter,
"Could not restart node "
<<
nodeId
);
"Could not restart node "
<<
nodeId
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
twoNodeFailure
(
NdbRestarter
&
_restarter
,
int
twoNodeFailure
(
NdbRestarter
&
_restarter
,
const
NdbRestarts
::
NdbRestart
*
_restart
){
const
NdbRestarts
::
NdbRestart
*
_restart
){
...
@@ -453,7 +453,7 @@ int twoNodeFailure(NdbRestarter& _restarter,
...
@@ -453,7 +453,7 @@ int twoNodeFailure(NdbRestarter& _restarter,
"Could not restart node "
<<
nodeId
);
"Could not restart node "
<<
nodeId
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
twoMasterNodeFailure
(
NdbRestarter
&
_restarter
,
int
twoMasterNodeFailure
(
NdbRestarter
&
_restarter
,
const
NdbRestarts
::
NdbRestart
*
_restart
){
const
NdbRestarts
::
NdbRestart
*
_restart
){
...
@@ -478,7 +478,7 @@ int twoMasterNodeFailure(NdbRestarter& _restarter,
...
@@ -478,7 +478,7 @@ int twoMasterNodeFailure(NdbRestarter& _restarter,
"Could not restart node "
<<
nodeId
);
"Could not restart node "
<<
nodeId
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
get50PercentOfNodes
(
NdbRestarter
&
restarter
,
int
get50PercentOfNodes
(
NdbRestarter
&
restarter
,
int
*
_nodes
){
int
*
_nodes
){
...
@@ -519,7 +519,7 @@ int fiftyPercentFail(NdbRestarter& _restarter,
...
@@ -519,7 +519,7 @@ int fiftyPercentFail(NdbRestarter& _restarter,
"Could not start all nodes"
);
"Could not start all nodes"
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
restartAllNodesGracfeul
(
NdbRestarter
&
_restarter
,
int
restartAllNodesGracfeul
(
NdbRestarter
&
_restarter
,
...
@@ -533,7 +533,7 @@ int restartAllNodesGracfeul(NdbRestarter& _restarter,
...
@@ -533,7 +533,7 @@ int restartAllNodesGracfeul(NdbRestarter& _restarter,
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
restartAllNodesAbort
(
NdbRestarter
&
_restarter
,
int
restartAllNodesAbort
(
NdbRestarter
&
_restarter
,
const
NdbRestarts
::
NdbRestart
*
_restart
){
const
NdbRestarts
::
NdbRestart
*
_restart
){
...
@@ -545,7 +545,7 @@ int restartAllNodesAbort(NdbRestarter& _restarter,
...
@@ -545,7 +545,7 @@ int restartAllNodesAbort(NdbRestarter& _restarter,
"Could not restart all nodes"
);
"Could not restart all nodes"
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
restartAllNodesError9999
(
NdbRestarter
&
_restarter
,
int
restartAllNodesError9999
(
NdbRestarter
&
_restarter
,
const
NdbRestarts
::
NdbRestart
*
_restart
){
const
NdbRestarts
::
NdbRestart
*
_restart
){
...
@@ -557,7 +557,7 @@ int restartAllNodesError9999(NdbRestarter& _restarter,
...
@@ -557,7 +557,7 @@ int restartAllNodesError9999(NdbRestarter& _restarter,
"Could not restart all nodes "
);
"Could not restart all nodes "
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
fiftyPercentStopAndWait
(
NdbRestarter
&
_restarter
,
int
fiftyPercentStopAndWait
(
NdbRestarter
&
_restarter
,
const
NdbRestarts
::
NdbRestart
*
_restart
){
const
NdbRestarts
::
NdbRestart
*
_restart
){
...
@@ -590,7 +590,7 @@ int fiftyPercentStopAndWait(NdbRestarter& _restarter,
...
@@ -590,7 +590,7 @@ int fiftyPercentStopAndWait(NdbRestarter& _restarter,
g_info
<<
_restart
->
m_name
<<
endl
;
g_info
<<
_restart
->
m_name
<<
endl
;
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
int
NFDuringNR_codes
[]
=
{
NFDuringNR_codes
[]
=
{
...
@@ -713,7 +713,7 @@ int restartNFDuringNR(NdbRestarter& _restarter,
...
@@ -713,7 +713,7 @@ int restartNFDuringNR(NdbRestarter& _restarter,
}
}
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
int
NRDuringLCP_Master_codes
[]
=
{
NRDuringLCP_Master_codes
[]
=
{
...
@@ -864,7 +864,7 @@ int stopOnError(NdbRestarter& _restarter,
...
@@ -864,7 +864,7 @@ int stopOnError(NdbRestarter& _restarter,
}
while
(
false
);
}
while
(
false
);
return
NDBT_OK
;
return
NDBT_OK
;
}
;
}
int
getRandomNodeId
(
NdbRestarter
&
_restarter
)
{
int
getRandomNodeId
(
NdbRestarter
&
_restarter
)
{
myRandom48Init
(
NdbTick_CurrentMillisecond
());
myRandom48Init
(
NdbTick_CurrentMillisecond
());
...
...
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