summaryrefslogtreecommitdiff
path: root/ndb/test/ndbapi/bank/bankTransactionMaker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ndb/test/ndbapi/bank/bankTransactionMaker.cpp')
-rw-r--r--ndb/test/ndbapi/bank/bankTransactionMaker.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ndb/test/ndbapi/bank/bankTransactionMaker.cpp b/ndb/test/ndbapi/bank/bankTransactionMaker.cpp
index e5ff9aeb918..f8e646b6553 100644
--- a/ndb/test/ndbapi/bank/bankTransactionMaker.cpp
+++ b/ndb/test/ndbapi/bank/bankTransactionMaker.cpp
@@ -46,7 +46,13 @@ int main(int argc, const char** argv){
return NDBT_ProgramExit(NDBT_WRONGARGS);
}
- Bank bank;
+ Ndb_cluster_connection con;
+ if(con.connect(12, 5, 1) != 0)
+ {
+ return NDBT_ProgramExit(NDBT_FAILED);
+ }
+
+ Bank bank(con);
if (bank.performTransactions(_wait) != 0)
return NDBT_ProgramExit(NDBT_FAILED);