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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
39a4aa39
Commit
39a4aa39
authored
Sep 15, 2004
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb_init() to all ndb programs
parent
4447c23d
Changes
106
Hide whitespace changes
Inline
Side-by-side
Showing
106 changed files
with
133 additions
and
7 deletions
+133
-7
ndb/examples/ndbapi_async_example/ndbapi_async.cpp
ndb/examples/ndbapi_async_example/ndbapi_async.cpp
+1
-0
ndb/examples/ndbapi_example1/ndbapi_example1.cpp
ndb/examples/ndbapi_example1/ndbapi_example1.cpp
+1
-0
ndb/examples/ndbapi_example2/ndbapi_example2.cpp
ndb/examples/ndbapi_example2/ndbapi_example2.cpp
+1
-0
ndb/examples/ndbapi_example3/ndbapi_example3.cpp
ndb/examples/ndbapi_example3/ndbapi_example3.cpp
+1
-0
ndb/examples/ndbapi_example4/ndbapi_example4.cpp
ndb/examples/ndbapi_example4/ndbapi_example4.cpp
+1
-0
ndb/examples/ndbapi_example5/ndbapi_example5.cpp
ndb/examples/ndbapi_example5/ndbapi_example5.cpp
+1
-0
ndb/examples/ndbapi_scan_example/ndbapi_scan.cpp
ndb/examples/ndbapi_scan_example/ndbapi_scan.cpp
+1
-0
ndb/examples/select_all/select_all.cpp
ndb/examples/select_all/select_all.cpp
+1
-0
ndb/include/ndb_global.h
ndb/include/ndb_global.h
+3
-0
ndb/src/common/util/Makefile.am
ndb/src/common/util/Makefile.am
+1
-1
ndb/src/common/util/ndb_init.c
ndb/src/common/util/ndb_init.c
+29
-0
ndb/src/kernel/blocks/backup/read.cpp
ndb/src/kernel/blocks/backup/read.cpp
+1
-0
ndb/src/kernel/blocks/backup/restore/main.cpp
ndb/src/kernel/blocks/backup/restore/main.cpp
+1
-0
ndb/src/kernel/main.cpp
ndb/src/kernel/main.cpp
+1
-0
ndb/src/kernel/vm/Configuration.cpp
ndb/src/kernel/vm/Configuration.cpp
+0
-1
ndb/src/mgmclient/main.cpp
ndb/src/mgmclient/main.cpp
+1
-0
ndb/src/mgmsrv/main.cpp
ndb/src/mgmsrv/main.cpp
+1
-1
ndb/src/mgmsrv/mkconfig/mkconfig.cpp
ndb/src/mgmsrv/mkconfig/mkconfig.cpp
+1
-0
ndb/src/ndbapi/Ndbinit.cpp
ndb/src/ndbapi/Ndbinit.cpp
+0
-1
ndb/test/ndbapi/acid.cpp
ndb/test/ndbapi/acid.cpp
+1
-0
ndb/test/ndbapi/acid2.cpp
ndb/test/ndbapi/acid2.cpp
+1
-0
ndb/test/ndbapi/bank/bankCreator.cpp
ndb/test/ndbapi/bank/bankCreator.cpp
+1
-0
ndb/test/ndbapi/bank/bankMakeGL.cpp
ndb/test/ndbapi/bank/bankMakeGL.cpp
+1
-0
ndb/test/ndbapi/bank/bankSumAccounts.cpp
ndb/test/ndbapi/bank/bankSumAccounts.cpp
+1
-0
ndb/test/ndbapi/bank/bankTimer.cpp
ndb/test/ndbapi/bank/bankTimer.cpp
+1
-0
ndb/test/ndbapi/bank/bankTransactionMaker.cpp
ndb/test/ndbapi/bank/bankTransactionMaker.cpp
+1
-0
ndb/test/ndbapi/bank/bankValidateAllGLs.cpp
ndb/test/ndbapi/bank/bankValidateAllGLs.cpp
+1
-0
ndb/test/ndbapi/bank/testBank.cpp
ndb/test/ndbapi/bank/testBank.cpp
+1
-0
ndb/test/ndbapi/benchronja.cpp
ndb/test/ndbapi/benchronja.cpp
+1
-0
ndb/test/ndbapi/bulk_copy.cpp
ndb/test/ndbapi/bulk_copy.cpp
+1
-0
ndb/test/ndbapi/cdrserver.cpp
ndb/test/ndbapi/cdrserver.cpp
+1
-0
ndb/test/ndbapi/celloDb.cpp
ndb/test/ndbapi/celloDb.cpp
+1
-0
ndb/test/ndbapi/create_all_tabs.cpp
ndb/test/ndbapi/create_all_tabs.cpp
+1
-0
ndb/test/ndbapi/create_tab.cpp
ndb/test/ndbapi/create_tab.cpp
+1
-0
ndb/test/ndbapi/drop_all_tabs.cpp
ndb/test/ndbapi/drop_all_tabs.cpp
+1
-0
ndb/test/ndbapi/flexAsynch.cpp
ndb/test/ndbapi/flexAsynch.cpp
+1
-0
ndb/test/ndbapi/flexBench.cpp
ndb/test/ndbapi/flexBench.cpp
+1
-0
ndb/test/ndbapi/flexHammer.cpp
ndb/test/ndbapi/flexHammer.cpp
+1
-0
ndb/test/ndbapi/flexScan.cpp
ndb/test/ndbapi/flexScan.cpp
+1
-0
ndb/test/ndbapi/flexTT.cpp
ndb/test/ndbapi/flexTT.cpp
+1
-0
ndb/test/ndbapi/flexTimedAsynch.cpp
ndb/test/ndbapi/flexTimedAsynch.cpp
+1
-0
ndb/test/ndbapi/flex_bench_mysql.cpp
ndb/test/ndbapi/flex_bench_mysql.cpp
+1
-0
ndb/test/ndbapi/index.cpp
ndb/test/ndbapi/index.cpp
+1
-0
ndb/test/ndbapi/index2.cpp
ndb/test/ndbapi/index2.cpp
+1
-0
ndb/test/ndbapi/initronja.cpp
ndb/test/ndbapi/initronja.cpp
+1
-0
ndb/test/ndbapi/interpreterInTup.cpp
ndb/test/ndbapi/interpreterInTup.cpp
+1
-0
ndb/test/ndbapi/mainAsyncGenerator.cpp
ndb/test/ndbapi/mainAsyncGenerator.cpp
+1
-0
ndb/test/ndbapi/msa.cpp
ndb/test/ndbapi/msa.cpp
+1
-0
ndb/test/ndbapi/restarter.cpp
ndb/test/ndbapi/restarter.cpp
+1
-0
ndb/test/ndbapi/restarter2.cpp
ndb/test/ndbapi/restarter2.cpp
+1
-0
ndb/test/ndbapi/restarts.cpp
ndb/test/ndbapi/restarts.cpp
+1
-0
ndb/test/ndbapi/size.cpp
ndb/test/ndbapi/size.cpp
+1
-0
ndb/test/ndbapi/slow_select.cpp
ndb/test/ndbapi/slow_select.cpp
+1
-0
ndb/test/ndbapi/testBackup.cpp
ndb/test/ndbapi/testBackup.cpp
+1
-0
ndb/test/ndbapi/testBasic.cpp
ndb/test/ndbapi/testBasic.cpp
+1
-0
ndb/test/ndbapi/testBasicAsynch.cpp
ndb/test/ndbapi/testBasicAsynch.cpp
+1
-0
ndb/test/ndbapi/testBlobs.cpp
ndb/test/ndbapi/testBlobs.cpp
+1
-0
ndb/test/ndbapi/testDataBuffers.cpp
ndb/test/ndbapi/testDataBuffers.cpp
+1
-0
ndb/test/ndbapi/testDeadlock.cpp
ndb/test/ndbapi/testDeadlock.cpp
+1
-0
ndb/test/ndbapi/testDict.cpp
ndb/test/ndbapi/testDict.cpp
+1
-0
ndb/test/ndbapi/testGrep.cpp
ndb/test/ndbapi/testGrep.cpp
+1
-0
ndb/test/ndbapi/testGrepVerify.cpp
ndb/test/ndbapi/testGrepVerify.cpp
+1
-0
ndb/test/ndbapi/testIndex.cpp
ndb/test/ndbapi/testIndex.cpp
+1
-0
ndb/test/ndbapi/testInterpreter.cpp
ndb/test/ndbapi/testInterpreter.cpp
+1
-0
ndb/test/ndbapi/testMgm.cpp
ndb/test/ndbapi/testMgm.cpp
+1
-0
ndb/test/ndbapi/testNdbApi.cpp
ndb/test/ndbapi/testNdbApi.cpp
+1
-0
ndb/test/ndbapi/testNodeRestart.cpp
ndb/test/ndbapi/testNodeRestart.cpp
+1
-0
ndb/test/ndbapi/testOIBasic.cpp
ndb/test/ndbapi/testOIBasic.cpp
+1
-0
ndb/test/ndbapi/testOperations.cpp
ndb/test/ndbapi/testOperations.cpp
+1
-0
ndb/test/ndbapi/testOrderedIndex.cpp
ndb/test/ndbapi/testOrderedIndex.cpp
+1
-0
ndb/test/ndbapi/testReadPerf.cpp
ndb/test/ndbapi/testReadPerf.cpp
+1
-0
ndb/test/ndbapi/testRestartGci.cpp
ndb/test/ndbapi/testRestartGci.cpp
+1
-0
ndb/test/ndbapi/testScan.cpp
ndb/test/ndbapi/testScan.cpp
+1
-0
ndb/test/ndbapi/testScanInterpreter.cpp
ndb/test/ndbapi/testScanInterpreter.cpp
+1
-0
ndb/test/ndbapi/testScanPerf.cpp
ndb/test/ndbapi/testScanPerf.cpp
+1
-0
ndb/test/ndbapi/testSystemRestart.cpp
ndb/test/ndbapi/testSystemRestart.cpp
+1
-0
ndb/test/ndbapi/testTimeout.cpp
ndb/test/ndbapi/testTimeout.cpp
+1
-0
ndb/test/ndbapi/testTransactions.cpp
ndb/test/ndbapi/testTransactions.cpp
+1
-0
ndb/test/ndbapi/test_event.cpp
ndb/test/ndbapi/test_event.cpp
+1
-0
ndb/test/run-test/main.cpp
ndb/test/run-test/main.cpp
+1
-0
ndb/test/src/NDBT_Test.cpp
ndb/test/src/NDBT_Test.cpp
+0
-1
ndb/test/tools/copy_tab.cpp
ndb/test/tools/copy_tab.cpp
+1
-0
ndb/test/tools/cpcc.cpp
ndb/test/tools/cpcc.cpp
+1
-0
ndb/test/tools/create_index.cpp
ndb/test/tools/create_index.cpp
+1
-0
ndb/test/tools/hugoCalculator.cpp
ndb/test/tools/hugoCalculator.cpp
+1
-0
ndb/test/tools/hugoFill.cpp
ndb/test/tools/hugoFill.cpp
+1
-0
ndb/test/tools/hugoLoad.cpp
ndb/test/tools/hugoLoad.cpp
+1
-0
ndb/test/tools/hugoLockRecords.cpp
ndb/test/tools/hugoLockRecords.cpp
+1
-0
ndb/test/tools/hugoPkDelete.cpp
ndb/test/tools/hugoPkDelete.cpp
+1
-0
ndb/test/tools/hugoPkRead.cpp
ndb/test/tools/hugoPkRead.cpp
+1
-0
ndb/test/tools/hugoPkReadRecord.cpp
ndb/test/tools/hugoPkReadRecord.cpp
+1
-0
ndb/test/tools/hugoPkUpdate.cpp
ndb/test/tools/hugoPkUpdate.cpp
+1
-0
ndb/test/tools/hugoScanRead.cpp
ndb/test/tools/hugoScanRead.cpp
+1
-0
ndb/test/tools/hugoScanUpdate.cpp
ndb/test/tools/hugoScanUpdate.cpp
+1
-0
ndb/test/tools/restart.cpp
ndb/test/tools/restart.cpp
+1
-0
ndb/test/tools/transproxy.cpp
ndb/test/tools/transproxy.cpp
+1
-0
ndb/test/tools/verify_index.cpp
ndb/test/tools/verify_index.cpp
+1
-0
ndb/tools/delete_all.cpp
ndb/tools/delete_all.cpp
+1
-0
ndb/tools/desc.cpp
ndb/tools/desc.cpp
+1
-0
ndb/tools/drop_index.cpp
ndb/tools/drop_index.cpp
+1
-0
ndb/tools/drop_tab.cpp
ndb/tools/drop_tab.cpp
+1
-0
ndb/tools/listTables.cpp
ndb/tools/listTables.cpp
+1
-1
ndb/tools/ndbsql.cpp
ndb/tools/ndbsql.cpp
+1
-0
ndb/tools/select_all.cpp
ndb/tools/select_all.cpp
+1
-1
ndb/tools/select_count.cpp
ndb/tools/select_count.cpp
+1
-0
ndb/tools/waiter.cpp
ndb/tools/waiter.cpp
+1
-0
No files found.
ndb/examples/ndbapi_async_example/ndbapi_async.cpp
View file @
39a4aa39
...
...
@@ -454,6 +454,7 @@ int populate(Ndb * myNdb, int data, async_callback_t * cbData)
int
main
()
{
ndb_init
();
Ndb
*
myNdb
=
new
Ndb
(
"TEST_DB"
);
// Object representing the database
/*******************************************
...
...
ndb/examples/ndbapi_example1/ndbapi_example1.cpp
View file @
39a4aa39
...
...
@@ -44,6 +44,7 @@
int
main
()
{
ndb_init
();
Ndb
*
myNdb
=
new
Ndb
(
"TEST_DB_1"
);
// Object representing the database
NdbDictionary
::
Table
myTable
;
NdbDictionary
::
Column
myColumn
;
...
...
ndb/examples/ndbapi_example2/ndbapi_example2.cpp
View file @
39a4aa39
...
...
@@ -39,6 +39,7 @@ static void callback(int result, NdbConnection* NdbObject, void* aObject);
int
main
()
{
ndb_init
();
Ndb
*
myNdb
=
new
Ndb
(
"TEST_DB_2"
);
// Object representing the database
NdbConnection
*
myNdbConnection
[
2
];
// For transactions
...
...
ndb/examples/ndbapi_example3/ndbapi_example3.cpp
View file @
39a4aa39
...
...
@@ -176,6 +176,7 @@ int executeInsertTransaction(int transactionId, Ndb* myNdb) {
int
main
()
{
ndb_init
();
Ndb
*
myNdb
=
new
Ndb
(
"TEST_DB_1"
);
// Object representing the database
/*******************************************
...
...
ndb/examples/ndbapi_example4/ndbapi_example4.cpp
View file @
39a4aa39
...
...
@@ -44,6 +44,7 @@
int
main
()
{
ndb_init
();
Ndb
*
myNdb
=
new
Ndb
(
"TEST_DB_1"
);
// Object representing the database
NdbDictionary
::
Table
myTable
;
NdbDictionary
::
Column
myColumn
;
...
...
ndb/examples/ndbapi_example5/ndbapi_example5.cpp
View file @
39a4aa39
...
...
@@ -65,6 +65,7 @@ int myCreateEvent(Ndb* myNdb,
int
main
()
{
ndb_init
();
Ndb
*
myNdb
=
myCreateNdb
();
NdbDictionary
::
Dictionary
*
myDict
;
...
...
ndb/examples/ndbapi_scan_example/ndbapi_scan.cpp
View file @
39a4aa39
...
...
@@ -761,6 +761,7 @@ int scan_print(Ndb * myNdb, int parallelism,
int
main
()
{
ndb_init
();
Ndb
*
myNdb
=
new
Ndb
(
"TEST_DB"
);
// Object representing the database
...
...
ndb/examples/select_all/select_all.cpp
View file @
39a4aa39
...
...
@@ -112,6 +112,7 @@ const char* ResultSetContainer::getAttrName(int i) const {return m_names[i];}
int
main
(
int
argc
,
const
char
**
argv
)
{
ndb_init
();
Ndb
*
myNdb
=
new
Ndb
(
"ndbapi_example4"
);
// Object representing the database
NdbConnection
*
myNdbConnection
;
// For transactions
NdbOperation
*
myNdbOperation
;
// For operations
...
...
ndb/include/ndb_global.h
View file @
39a4aa39
...
...
@@ -76,6 +76,9 @@ extern "C" {
#include <assert.h>
/* call in main() - does not return on error */
extern
int
ndb_init
(
void
);
#ifndef HAVE_STRDUP
extern
char
*
strdup
(
const
char
*
s
);
#endif
...
...
ndb/src/common/util/Makefile.am
View file @
39a4aa39
...
...
@@ -9,7 +9,7 @@ libgeneral_la_SOURCES = \
NdbSqlUtil.cpp new.cpp
\
uucode.c random.c getarg.c version.c
\
strdup.c strlcat.c strlcpy.c
\
ConfigValues.cpp
ConfigValues.cpp
ndb_init.c
include
$(top_srcdir)/ndb/config/common.mk.am
include
$(top_srcdir)/ndb/config/type_util.mk.am
...
...
ndb/src/common/util/ndb_init.c
0 → 100644
View file @
39a4aa39
/* Copyright (C) 2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <my_sys.h>
int
ndb_init
()
{
if
(
my_init
())
{
const
char
*
err
=
"my_init() failed - exit
\n
"
;
write
(
2
,
err
,
strlen
(
err
));
exit
(
1
);
}
return
0
;
}
ndb/src/kernel/blocks/backup/read.cpp
View file @
39a4aa39
...
...
@@ -48,6 +48,7 @@ static Uint32 logEntryNo;
int
main
(
int
argc
,
const
char
*
argv
[]){
ndb_init
();
if
(
argc
<=
1
){
printf
(
"Usage: %s <filename>"
,
argv
[
0
]);
exit
(
1
);
...
...
ndb/src/kernel/blocks/backup/restore/main.cpp
View file @
39a4aa39
...
...
@@ -206,6 +206,7 @@ free_data_callback()
int
main
(
int
argc
,
const
char
**
argv
)
{
ndb_init
();
if
(
!
readArguments
(
argc
,
argv
))
{
return
-
1
;
...
...
ndb/src/kernel/main.cpp
View file @
39a4aa39
...
...
@@ -56,6 +56,7 @@ const char programName[] = "NDB Kernel";
NDB_MAIN
(
ndb_kernel
){
ndb_init
();
// Print to stdout/console
g_eventLogger
.
createConsoleHandler
();
g_eventLogger
.
setCategory
(
"NDB"
);
...
...
ndb/src/kernel/vm/Configuration.cpp
View file @
39a4aa39
...
...
@@ -105,7 +105,6 @@ Configuration::init(int argc, const char** argv){
}
// check for depricated flag '-i'
my_init
();
#ifndef DBUG_OFF
if
(
debug_option
)
DBUG_PUSH
(
debug_option
);
...
...
ndb/src/mgmclient/main.cpp
View file @
39a4aa39
...
...
@@ -44,6 +44,7 @@ handler(int sig){
}
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
optind
=
0
;
const
char
*
_host
=
0
;
int
_port
=
0
;
...
...
ndb/src/mgmsrv/main.cpp
View file @
39a4aa39
...
...
@@ -129,6 +129,7 @@ int num_args = sizeof(args) / sizeof(args[0]);
* MAIN
*/
NDB_MAIN
(
mgmsrv
){
ndb_init
();
/**
* OSE specific. Enable shared ownership of file system resources.
* This is needed in order to use the cluster log since the events
...
...
@@ -151,7 +152,6 @@ NDB_MAIN(mgmsrv){
glob
.
daemon
=
0
;
}
my_init
();
#ifndef DBUG_OFF
if
(
debug_option
)
DBUG_PUSH
(
debug_option
);
...
...
ndb/src/mgmsrv/mkconfig/mkconfig.cpp
View file @
39a4aa39
...
...
@@ -32,6 +32,7 @@ void usage(const char * prg){
NDB_COMMAND
(
mkconfig
,
"mkconfig"
,
"mkconfig"
,
"Make a binary configuration from a config file"
,
16384
){
ndb_init
();
if
(
argc
<
3
){
usage
(
argv
[
0
]);
return
0
;
...
...
ndb/src/ndbapi/Ndbinit.cpp
View file @
39a4aa39
...
...
@@ -62,7 +62,6 @@ Ndb::Ndb( const char* aDataBase , const char* aSchema) {
abort
();
// old and new Ndb constructor used mixed
theNoOfNdbObjects
++
;
if
(
global_ndb_cluster_connection
==
0
)
{
my_init
();
global_ndb_cluster_connection
=
new
Ndb_cluster_connection
(
ndbConnectString
);
global_ndb_cluster_connection
->
connect
();
}
...
...
ndb/test/ndbapi/acid.cpp
View file @
39a4aa39
...
...
@@ -434,6 +434,7 @@ extern "C" void* NdbThreadFuncRead(void* pArg)
NDB_COMMAND
(
acid
,
"acid"
,
"acid"
,
"acid"
,
65535
)
{
ndb_init
();
long
nSeconds
=
60
;
int
rc
=
NDBT_OK
;
...
...
ndb/test/ndbapi/acid2.cpp
View file @
39a4aa39
...
...
@@ -610,6 +610,7 @@ extern "C" void* ThreadFunc(void*)
int
main
(
int
argc
,
char
*
argv
[])
{
ndb_init
();
Uint32
nSeconds
=
1
;
Uint32
nThread
=
1
;
...
...
ndb/test/ndbapi/bank/bankCreator.cpp
View file @
39a4aa39
...
...
@@ -27,6 +27,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_help
=
0
;
struct
getargs
args
[]
=
{
...
...
ndb/test/ndbapi/bank/bankMakeGL.cpp
View file @
39a4aa39
...
...
@@ -27,6 +27,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_help
=
0
;
struct
getargs
args
[]
=
{
...
...
ndb/test/ndbapi/bank/bankSumAccounts.cpp
View file @
39a4aa39
...
...
@@ -27,6 +27,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_help
=
0
;
struct
getargs
args
[]
=
{
...
...
ndb/test/ndbapi/bank/bankTimer.cpp
View file @
39a4aa39
...
...
@@ -28,6 +28,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_help
=
0
;
int
_wait
=
30
;
...
...
ndb/test/ndbapi/bank/bankTransactionMaker.cpp
View file @
39a4aa39
...
...
@@ -28,6 +28,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_help
=
0
;
int
_wait
=
20
;
...
...
ndb/test/ndbapi/bank/bankValidateAllGLs.cpp
View file @
39a4aa39
...
...
@@ -28,6 +28,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_help
=
0
;
struct
getargs
args
[]
=
{
...
...
ndb/test/ndbapi/bank/testBank.cpp
View file @
39a4aa39
...
...
@@ -141,6 +141,7 @@ TESTCASE("Bank",
NDBT_TESTSUITE_END
(
testBank
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
// Tables should not be auto created
testBank
.
setCreateTable
(
false
);
...
...
ndb/test/ndbapi/benchronja.cpp
View file @
39a4aa39
...
...
@@ -66,6 +66,7 @@ static int ThreadReady[MAXTHREADS];
static
int
ThreadStart
[
MAXTHREADS
];
NDB_COMMAND
(
benchronja
,
"benchronja"
,
"benchronja"
,
"benchronja"
,
65535
){
ndb_init
();
ThreadNdb
tabThread
[
MAXTHREADS
];
int
i
=
0
;
...
...
ndb/test/ndbapi/bulk_copy.cpp
View file @
39a4aa39
...
...
@@ -221,6 +221,7 @@ int insertFile(Ndb* pNdb,
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_tabname
=
NULL
;
int
_help
=
0
;
...
...
ndb/test/ndbapi/cdrserver.cpp
View file @
39a4aa39
...
...
@@ -113,6 +113,7 @@ using namespace std;
int
main
(
int
argc
,
const
char
**
argv
)
{
ndb_init
();
/******** NDB ***********/
/*
Ndb MyNdb( "TEST_DB" );
...
...
ndb/test/ndbapi/celloDb.cpp
View file @
39a4aa39
...
...
@@ -73,6 +73,7 @@ static int failed = 0 ;
NDB_COMMAND
(
celloDb
,
"celloDb"
,
"celloDb"
,
"celloDb"
,
65535
)
{
ndb_init
();
int
tTableId
;
int
i
;
...
...
ndb/test/ndbapi/create_all_tabs.cpp
View file @
39a4aa39
...
...
@@ -25,6 +25,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_temp
=
false
;
int
_help
=
0
;
...
...
ndb/test/ndbapi/create_tab.cpp
View file @
39a4aa39
...
...
@@ -25,6 +25,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_temp
=
false
;
int
_help
=
0
;
...
...
ndb/test/ndbapi/drop_all_tabs.cpp
View file @
39a4aa39
...
...
@@ -23,6 +23,7 @@
#include <getarg.h>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_help
=
0
;
struct
getargs
args
[]
=
{
...
...
ndb/test/ndbapi/flexAsynch.cpp
View file @
39a4aa39
...
...
@@ -145,6 +145,7 @@ tellThreads(StartType what)
NDB_COMMAND
(
flexAsynch
,
"flexAsynch"
,
"flexAsynch"
,
"flexAsynch"
,
65535
)
{
ndb_init
();
ThreadNdb
*
pThreadData
;
int
tLoops
=
0
,
i
;
int
returnValue
=
NDBT_OK
;
...
...
ndb/test/ndbapi/flexBench.cpp
View file @
39a4aa39
...
...
@@ -281,6 +281,7 @@ tellThreads(ThreadData* pt, StartType what)
NDB_COMMAND
(
flexBench
,
"flexBench"
,
"flexBench"
,
"flexbench"
,
65535
)
{
ndb_init
();
ThreadData
*
pThreadsData
;
int
tLoops
=
0
,
i
;
int
returnValue
=
NDBT_OK
;
...
...
ndb/test/ndbapi/flexHammer.cpp
View file @
39a4aa39
...
...
@@ -178,6 +178,7 @@ tellThreads(ThreadNdb* threadArrayP, const StartType what)
NDB_COMMAND
(
flexHammer
,
"flexHammer"
,
"flexHammer"
,
"flexHammer"
,
65535
)
//main(int argc, const char** argv)
{
ndb_init
();
ThreadNdb
*
pThreads
=
NULL
;
// Pointer to thread data array
Ndb
*
pMyNdb
=
NULL
;
// Pointer to Ndb object
int
tLoops
=
0
;
...
...
ndb/test/ndbapi/flexScan.cpp
View file @
39a4aa39
...
...
@@ -297,6 +297,7 @@ static int checkThreadResults(ThreadNdb *threadArrayP, char *action)
NDB_COMMAND
(
flexScan
,
"flexScan"
,
"flexScan"
,
"flexScan"
,
65535
)
{
ndb_init
();
ThreadNdb
*
pThreads
=
NULL
;
Ndb
*
pMyNdb
=
NULL
;
int
tLoops
=
0
;
...
...
ndb/test/ndbapi/flexTT.cpp
View file @
39a4aa39
...
...
@@ -171,6 +171,7 @@ tellThreads(StartType what)
NDB_COMMAND
(
flexTT
,
"flexTT"
,
"flexTT"
,
"flexTT"
,
65535
)
{
ndb_init
();
ThreadNdb
*
pThreadData
;
int
returnValue
=
NDBT_OK
;
int
i
;
...
...
ndb/test/ndbapi/flexTimedAsynch.cpp
View file @
39a4aa39
...
...
@@ -174,6 +174,7 @@ void deleteAttributeSpace(){
NDB_COMMAND
(
flexTimedAsynch
,
"flexTimedAsynch"
,
"flexTimedAsynch [-tpoilcas]"
,
"flexTimedAsynch"
,
65535
)
{
ndb_init
();
ThreadNdb
tabThread
[
MAXTHREADS
];
int
tLoops
=
0
;
int
returnValue
;
...
...
ndb/test/ndbapi/flex_bench_mysql.cpp
View file @
39a4aa39
...
...
@@ -308,6 +308,7 @@ tellThreads(ThreadData* pt, StartType what)
NDB_COMMAND
(
flexBench
,
"flexBench"
,
"flexBench"
,
"flexbench"
,
65535
)
{
ndb_init
();
ThreadData
*
pThreadsData
;
int
tLoops
=
0
;
int
returnValue
=
NDBT_OK
;
...
...
ndb/test/ndbapi/index.cpp
View file @
39a4aa39
...
...
@@ -771,6 +771,7 @@ static void dropIndex(Ndb &myNdb, unsigned int noOfIndexes)
NDB_COMMAND
(
indexTest
,
"indexTest"
,
"indexTest"
,
"indexTest"
,
65535
)
{
ndb_init
();
bool
createTableOp
,
createIndexOp
,
dropIndexOp
,
insertOp
,
updateOp
,
deleteOp
,
readOp
,
readIndexOp
,
updateIndexOp
,
deleteIndexOp
,
twoKey
,
longKey
;
unsigned
int
noOfTuples
=
1
;
unsigned
int
noOfOperations
=
1
;
...
...
ndb/test/ndbapi/index2.cpp
View file @
39a4aa39
...
...
@@ -608,6 +608,7 @@ static void dropIndex(Ndb &myNdb, unsigned int noOfIndexes)
NDB_COMMAND
(
indexTest
,
"indexTest"
,
"indexTest"
,
"indexTest"
,
65535
)
{
ndb_init
();
bool
createTableOp
,
createIndexOp
,
dropIndexOp
,
insertOp
,
updateOp
,
deleteOp
,
readOp
,
readIndexOp
,
updateIndexOp
,
deleteIndexOp
,
twoKey
,
longKey
;
unsigned
int
noOfTuples
=
1
;
unsigned
int
noOfOperations
=
1
;
...
...
ndb/test/ndbapi/initronja.cpp
View file @
39a4aa39
...
...
@@ -46,6 +46,7 @@ static char attrName[MAXATTR][MAXSTRLEN];
inline
int
InsertRecords
(
Ndb
*
,
int
)
;
NDB_COMMAND
(
initronja
,
"initronja"
,
"initronja"
,
"initronja"
,
65535
){
ndb_init
();
Ndb
*
pNdb
=
NULL
;
NdbSchemaCon
*
MySchemaTransaction
=
NULL
;
...
...
ndb/test/ndbapi/interpreterInTup.cpp
View file @
39a4aa39
...
...
@@ -105,6 +105,7 @@ int bTestPassed = 0;
int
main
(
int
argc
,
const
char
**
argv
)
{
ndb_init
();
int
operationType
=
0
;
int
tupTest
=
0
;
...
...
ndb/test/ndbapi/mainAsyncGenerator.cpp
View file @
39a4aa39
...
...
@@ -282,6 +282,7 @@ threadRoutine(void *arg)
NDB_COMMAND
(
DbAsyncGenerator
,
"DbAsyncGenerator"
,
"DbAsyncGenerator"
,
"DbAsyncGenerator"
,
65535
)
{
ndb_init
();
int
i
;
int
j
;
int
k
;
...
...
ndb/test/ndbapi/msa.cpp
View file @
39a4aa39
...
...
@@ -971,6 +971,7 @@ void ShowHelp(const char* szCmd)
int
main
(
int
argc
,
char
*
argv
[])
{
ndb_init
();
int
iRes
=
-
1
;
g_nNumThreads
=
0
;
g_nMaxCallsPerSecond
=
0
;
...
...
ndb/test/ndbapi/restarter.cpp
View file @
39a4aa39
...
...
@@ -28,6 +28,7 @@
#include <NDBT.hpp>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_hostName
=
NULL
;
int
_loops
=
10
;
...
...
ndb/test/ndbapi/restarter2.cpp
View file @
39a4aa39
...
...
@@ -26,6 +26,7 @@
#include <NDBT.hpp>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_hostName
=
NULL
;
int
_loops
=
10
;
...
...
ndb/test/ndbapi/restarts.cpp
View file @
39a4aa39
...
...
@@ -27,6 +27,7 @@
#include <NDBT.hpp>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_restartName
=
NULL
;
int
_loops
=
1
;
...
...
ndb/test/ndbapi/size.cpp
View file @
39a4aa39
...
...
@@ -19,6 +19,7 @@
int
main
(
void
)
{
ndb_init
();
printf
(
"cdrstruct=%d
\n
"
,
sizeof
(
struct
cdr_record
));
printf
(
"long int=%d
\n
"
,
sizeof
(
long
int
));
printf
(
"int=%d
\n
"
,
sizeof
(
int
));
...
...
ndb/test/ndbapi/slow_select.cpp
View file @
39a4aa39
...
...
@@ -36,6 +36,7 @@ static void lookup();
int
main
(
void
){
ndb_init
();
Ndb
g_ndb
(
"test"
);
g_ndb
.
init
(
1024
);
...
...
ndb/test/ndbapi/testBackup.cpp
View file @
39a4aa39
...
...
@@ -473,6 +473,7 @@ TESTCASE("FailSlave",
NDBT_TESTSUITE_END
(
testBackup
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
return
testBackup
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testBasic.cpp
View file @
39a4aa39
...
...
@@ -1278,6 +1278,7 @@ TESTCASE("MassiveTransaction",
NDBT_TESTSUITE_END
(
testBasic
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
return
testBasic
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testBasicAsynch.cpp
View file @
39a4aa39
...
...
@@ -181,6 +181,7 @@ TESTCASE("PkDeleteAsynch",
NDBT_TESTSUITE_END
(
testBasicAsynch
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
return
testBasicAsynch
.
execute
(
argc
,
argv
);
}
ndb/test/ndbapi/testBlobs.cpp
View file @
39a4aa39
...
...
@@ -1338,6 +1338,7 @@ static struct {
NDB_COMMAND
(
testOdbcDriver
,
"testBlobs"
,
"testBlobs"
,
"testBlobs"
,
65535
)
{
ndb_init
();
while
(
++
argv
,
--
argc
>
0
)
{
const
char
*
arg
=
argv
[
0
];
if
(
strcmp
(
arg
,
"-batch"
)
==
0
)
{
...
...
ndb/test/ndbapi/testDataBuffers.cpp
View file @
39a4aa39
...
...
@@ -545,6 +545,7 @@ testcase(int flag)
NDB_COMMAND
(
testDataBuffers
,
"testDataBuffers"
,
"testDataBuffers"
,
"testDataBuffers"
,
65535
)
{
ndb_init
();
while
(
++
argv
,
--
argc
>
0
)
{
char
const
*
p
=
argv
[
0
];
if
(
*
p
++
!=
'-'
||
strlen
(
p
)
!=
1
)
...
...
ndb/test/ndbapi/testDeadlock.cpp
View file @
39a4aa39
...
...
@@ -491,6 +491,7 @@ wl1822_main(char scantx)
NDB_COMMAND
(
testOdbcDriver
,
"testDeadlock"
,
"testDeadlock"
,
"testDeadlock"
,
65535
)
{
ndb_init
();
while
(
++
argv
,
--
argc
>
0
)
{
const
char
*
arg
=
argv
[
0
];
if
(
strcmp
(
arg
,
"-scan"
)
==
0
)
{
...
...
ndb/test/ndbapi/testDict.cpp
View file @
39a4aa39
...
...
@@ -1576,6 +1576,7 @@ TESTCASE("DictionaryPerf",
NDBT_TESTSUITE_END
(
testDict
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
// Tables should not be auto created
testDict
.
setCreateTable
(
false
);
myRandom48Init
(
NdbTick_CurrentMillisecond
());
...
...
ndb/test/ndbapi/testGrep.cpp
View file @
39a4aa39
...
...
@@ -533,6 +533,7 @@ TESTCASE("FailSlave",
NDBT_TESTSUITE_END
(
testGrep
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
return
testGrep
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testGrepVerify.cpp
View file @
39a4aa39
...
...
@@ -40,6 +40,7 @@
continue; }
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
connectString
=
NULL
;
...
...
ndb/test/ndbapi/testIndex.cpp
View file @
39a4aa39
...
...
@@ -1528,6 +1528,7 @@ TESTCASE("UniqueNull",
NDBT_TESTSUITE_END
(
testIndex
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
return
testIndex
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testInterpreter.cpp
View file @
39a4aa39
...
...
@@ -224,6 +224,7 @@ TESTCASE("NdbErrorOperation",
NDBT_TESTSUITE_END
(
testInterpreter
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
// TABLE("T1");
return
testInterpreter
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testMgm.cpp
View file @
39a4aa39
...
...
@@ -178,6 +178,7 @@ TESTCASE("SingleUserMode",
NDBT_TESTSUITE_END
(
testMgm
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
myRandom48Init
(
NdbTick_CurrentMillisecond
());
return
testMgm
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testNdbApi.cpp
View file @
39a4aa39
...
...
@@ -1006,6 +1006,7 @@ TESTCASE("NdbErrorOperation",
NDBT_TESTSUITE_END
(
testNdbApi
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
// TABLE("T1");
return
testNdbApi
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testNodeRestart.cpp
View file @
39a4aa39
...
...
@@ -434,6 +434,7 @@ TESTCASE("StopOnError",
NDBT_TESTSUITE_END
(
testNodeRestart
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
#if 0
// It might be interesting to have longer defaults for num
// loops in this test
...
...
ndb/test/ndbapi/testOIBasic.cpp
View file @
39a4aa39
...
...
@@ -3201,6 +3201,7 @@ runtest(Par par)
NDB_COMMAND
(
testOIBasic
,
"testOIBasic"
,
"testOIBasic"
,
"testOIBasic"
,
65535
)
{
ndb_init
();
while
(
++
argv
,
--
argc
>
0
)
{
const
char
*
arg
=
argv
[
0
];
if
(
*
arg
!=
'-'
)
{
...
...
ndb/test/ndbapi/testOperations.cpp
View file @
39a4aa39
...
...
@@ -230,6 +230,7 @@ runClearTable(NDBT_Context* ctx, NDBT_Step* step){
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
NDBT_TestSuite
ts
(
"testOperations"
);
for
(
Uint32
i
=
0
;
i
<
sizeof
(
matrix
)
/
sizeof
(
matrix
[
0
]);
i
++
){
...
...
ndb/test/ndbapi/testOrderedIndex.cpp
View file @
39a4aa39
...
...
@@ -218,6 +218,7 @@ NDBT_TESTSUITE_END(testOrderedIndex);
int
main
(
int
argc
,
const
char
**
argv
)
{
ndb_init
();
return
testOrderedIndex
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testReadPerf.cpp
View file @
39a4aa39
...
...
@@ -91,6 +91,7 @@ void print_result();
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
verbose
=
1
;
int
optind
=
0
;
...
...
ndb/test/ndbapi/testRestartGci.cpp
View file @
39a4aa39
...
...
@@ -214,6 +214,7 @@ TESTCASE("InsertRestartGci",
NDBT_TESTSUITE_END
(
testRestartGci
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
return
testRestartGci
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testScan.cpp
View file @
39a4aa39
...
...
@@ -1400,6 +1400,7 @@ TESTCASE("ScanRestart",
NDBT_TESTSUITE_END
(
testScan
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
myRandom48Init
(
NdbTick_CurrentMillisecond
());
return
testScan
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testScanInterpreter.cpp
View file @
39a4aa39
...
...
@@ -273,6 +273,7 @@ TESTCASE("ScanLessThanLoop",
NDBT_TESTSUITE_END
(
testScanInterpreter
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
return
testScanInterpreter
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testScanPerf.cpp
View file @
39a4aa39
...
...
@@ -72,6 +72,7 @@ int drop_table();
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
verbose
=
1
;
int
optind
=
0
;
...
...
ndb/test/ndbapi/testSystemRestart.cpp
View file @
39a4aa39
...
...
@@ -1179,6 +1179,7 @@ TESTCASE("SR8",
NDBT_TESTSUITE_END
(
testSystemRestart
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
return
testSystemRestart
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testTimeout.cpp
View file @
39a4aa39
...
...
@@ -406,6 +406,7 @@ TESTCASE("BuddyTransNoTimeout5",
NDBT_TESTSUITE_END
(
testTimeout
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
myRandom48Init
(
NdbTick_CurrentMillisecond
());
return
testTimeout
.
execute
(
argc
,
argv
);
}
...
...
ndb/test/ndbapi/testTransactions.cpp
View file @
39a4aa39
...
...
@@ -364,6 +364,7 @@ runClearTable(NDBT_Context* ctx, NDBT_Step* step){
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
NDBT_TestSuite
ts
(
"testOperations"
);
for
(
Uint32
i
=
0
;
i
<
sizeof
(
matrix
)
/
sizeof
(
matrix
[
0
]);
i
++
){
...
...
ndb/test/ndbapi/test_event.cpp
View file @
39a4aa39
...
...
@@ -137,6 +137,7 @@ NDBT_TESTSUITE_END(test_event);
#endif
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
return
test_event
.
execute
(
argc
,
argv
);
}
ndb/test/run-test/main.cpp
View file @
39a4aa39
...
...
@@ -79,6 +79,7 @@ const int arg_count = 10;
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
bool
restart
=
true
;
int
lineno
=
1
;
...
...
ndb/test/src/NDBT_Test.cpp
View file @
39a4aa39
...
...
@@ -985,7 +985,6 @@ int NDBT_TestSuite::execute(int argc, const char** argv){
}
#ifndef DBUG_OFF
my_init
();
if
(
debug_option
)
DBUG_PUSH
(
debug_option
);
#endif
...
...
ndb/test/tools/copy_tab.cpp
View file @
39a4aa39
...
...
@@ -24,6 +24,7 @@
#include <getarg.h>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_tabname
=
NULL
;
const
char
*
_to_tabname
=
NULL
;
...
...
ndb/test/tools/cpcc.cpp
View file @
39a4aa39
...
...
@@ -173,6 +173,7 @@ add_hosts(Vector<SimpleCpcClient*> & hosts, BaseString list){
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
help
=
0
;
const
char
*
cmd
=
0
,
*
name
=
0
,
*
group
=
0
,
*
owner
=
0
;
int
list
=
0
,
start
=
0
,
stop
=
0
,
rm
=
0
;
...
...
ndb/test/tools/create_index.cpp
View file @
39a4aa39
...
...
@@ -26,6 +26,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_dbname
=
"TEST_DB"
;
int
_help
=
0
;
...
...
ndb/test/tools/hugoCalculator.cpp
View file @
39a4aa39
...
...
@@ -28,6 +28,7 @@
int
main
(
int
argc
,
const
char
**
argv
)
{
ndb_init
();
int
_row
=
0
;
int
_column
=
0
;
int
_updates
=
0
;
...
...
ndb/test/tools/hugoFill.cpp
View file @
39a4aa39
...
...
@@ -25,6 +25,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_records
=
0
;
const
char
*
_tabname
=
NULL
;
...
...
ndb/test/tools/hugoLoad.cpp
View file @
39a4aa39
...
...
@@ -24,6 +24,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_records
=
0
;
const
char
*
_tabname
=
NULL
;
...
...
ndb/test/tools/hugoLockRecords.cpp
View file @
39a4aa39
...
...
@@ -27,6 +27,7 @@
#include <HugoTransactions.hpp>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_records
=
0
;
int
_loops
=
1
;
...
...
ndb/test/tools/hugoPkDelete.cpp
View file @
39a4aa39
...
...
@@ -27,6 +27,7 @@
#include <HugoTransactions.hpp>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_records
=
0
;
int
_loops
=
1
;
...
...
ndb/test/tools/hugoPkRead.cpp
View file @
39a4aa39
...
...
@@ -28,6 +28,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_records
=
0
;
int
_loops
=
1
;
...
...
ndb/test/tools/hugoPkReadRecord.cpp
View file @
39a4aa39
...
...
@@ -28,6 +28,7 @@
int
main
(
int
argc
,
const
char
**
argv
)
{
ndb_init
();
int
_row
=
0
;
int
_hex
=
0
;
int
_primaryKey
=
0
;
...
...
ndb/test/tools/hugoPkUpdate.cpp
View file @
39a4aa39
...
...
@@ -27,6 +27,7 @@
#include <HugoTransactions.hpp>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_records
=
0
;
int
_loops
=
1
;
...
...
ndb/test/tools/hugoScanRead.cpp
View file @
39a4aa39
...
...
@@ -27,6 +27,7 @@
#include <HugoTransactions.hpp>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_records
=
0
;
int
_loops
=
1
;
...
...
ndb/test/tools/hugoScanUpdate.cpp
View file @
39a4aa39
...
...
@@ -27,6 +27,7 @@
#include <HugoTransactions.hpp>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_records
=
0
;
int
_loops
=
1
;
...
...
ndb/test/tools/restart.cpp
View file @
39a4aa39
...
...
@@ -27,6 +27,7 @@
#include <NDBT.hpp>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_hostName
=
NULL
;
int
_initial
=
0
;
...
...
ndb/test/tools/transproxy.cpp
View file @
39a4aa39
...
...
@@ -346,6 +346,7 @@ start()
int
main
(
int
av
,
char
**
ac
)
{
ndb_init
();
debug
(
"start"
);
hostname
=
"ndb-srv7"
;
if
(
Ndb_getInAddr
(
&
hostaddr
.
sin_addr
,
hostname
)
!=
0
)
{
...
...
ndb/test/tools/verify_index.cpp
View file @
39a4aa39
...
...
@@ -27,6 +27,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_parallelism
=
240
;
const
char
*
_tabname
=
NULL
;
const
char
*
_indexname
=
NULL
;
...
...
ndb/tools/delete_all.cpp
View file @
39a4aa39
...
...
@@ -26,6 +26,7 @@
static
int
clear_table
(
Ndb
*
pNdb
,
const
NdbDictionary
::
Table
*
pTab
,
int
parallelism
=
240
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_tabname
=
NULL
;
const
char
*
_dbname
=
"TEST_DB"
;
...
...
ndb/tools/desc.cpp
View file @
39a4aa39
...
...
@@ -22,6 +22,7 @@
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_tabname
=
NULL
;
const
char
*
_dbname
=
"TEST_DB"
;
int
_unqualified
=
0
;
...
...
ndb/tools/drop_index.cpp
View file @
39a4aa39
...
...
@@ -23,6 +23,7 @@
#include <getarg.h>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_tabname
=
NULL
;
const
char
*
_dbname
=
"TEST_DB"
;
...
...
ndb/tools/drop_tab.cpp
View file @
39a4aa39
...
...
@@ -23,6 +23,7 @@
#include <getarg.h>
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_tabname
=
NULL
;
const
char
*
_dbname
=
"TEST_DB"
;
...
...
ndb/tools/listTables.cpp
View file @
39a4aa39
...
...
@@ -167,6 +167,7 @@ const char *debug_option= 0;
#endif
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_loops
=
1
;
const
char
*
_tabname
=
NULL
;
const
char
*
_dbname
=
"TEST_DB"
;
...
...
@@ -209,7 +210,6 @@ int main(int argc, const char** argv){
_tabname
=
argv
[
optind
];
#ifndef DBUG_OFF
my_init
();
if
(
debug_option
)
DBUG_PUSH
(
debug_option
);
#endif
...
...
ndb/tools/ndbsql.cpp
View file @
39a4aa39
...
...
@@ -671,6 +671,7 @@ void print_help_virtual() {
int
main
(
int
argc
,
const
char
**
argv
)
{
ndb_init
();
const
char
*
usage
=
"Usage: ndbsql [-h] [-d dsn] [-f file] [stmt]
\n
-h help
\n
-d <database name or connect string>
\n
-f <file name> batch mode
\n
stmt single SQL statement
\n
"
;
const
char
*
dsn
=
"TEST_DB"
;
bool
helpFlg
=
false
,
batchMode
=
false
;
...
...
ndb/tools/select_all.cpp
View file @
39a4aa39
...
...
@@ -42,6 +42,7 @@ int scanReadRecords(Ndb*,
bool
orderby
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
int
_parallelism
=
240
;
const
char
*
_delimiter
=
"
\t
"
;
int
_header
=
true
;
...
...
@@ -89,7 +90,6 @@ int main(int argc, const char** argv){
_tabname
=
argv
[
optind
];
#ifndef DBUG_OFF
my_init
();
if
(
debug_option
)
DBUG_PUSH
(
debug_option
);
#endif
...
...
ndb/tools/select_count.cpp
View file @
39a4aa39
...
...
@@ -33,6 +33,7 @@ select_count(Ndb* pNdb, const NdbDictionary::Table* pTab,
UtilTransactions
::
ScanLock
lock
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_dbname
=
"TEST_DB"
;
int
_parallelism
=
240
;
int
_help
=
0
;
...
...
ndb/tools/waiter.cpp
View file @
39a4aa39
...
...
@@ -30,6 +30,7 @@ int
waitClusterStatus
(
const
char
*
_addr
,
ndb_mgm_node_status
_status
,
unsigned
int
_timeout
);
int
main
(
int
argc
,
const
char
**
argv
){
ndb_init
();
const
char
*
_hostName
=
NULL
;
int
_no_contact
=
0
;
...
...
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