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
dacfba06
Commit
dacfba06
authored
Aug 01, 2008
by
Magnus Svensson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #32406 #ifdef LATER_HAVE_NDBCLUSTER_DB in client/mysqladmin.cc
parent
5b9f8450
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
40 deletions
+0
-40
client/mysqladmin.cc
client/mysqladmin.cc
+0
-40
No files found.
client/mysqladmin.cc
View file @
dacfba06
...
...
@@ -23,10 +23,6 @@
#include <sys/stat.h>
#include <mysql.h>
#ifdef LATER_HAVE_NDBCLUSTER_DB
#include "../ndb/src/mgmclient/ndb_mgmclient.h"
#endif
#define ADMIN_VERSION "8.42"
#define MAX_MYSQL_VAR 256
#define SHUTDOWN_DEF_TIMEOUT 3600
/* Wait for shutdown */
...
...
@@ -46,10 +42,6 @@ static uint tcp_port = 0, option_wait = 0, option_silent=0, nr_iterations;
static
uint
opt_count_iterations
=
0
,
my_end_arg
;
static
ulong
opt_connect_timeout
,
opt_shutdown_timeout
;
static
char
*
unix_port
=
0
;
#ifdef LATER_HAVE_NDBCLUSTER_DB
static
my_bool
opt_ndbcluster
=
0
;
static
char
*
opt_ndb_connectstring
=
0
;
#endif
#ifdef HAVE_SMEM
static
char
*
shared_memory_base_name
=
0
;
...
...
@@ -105,9 +97,6 @@ enum commands {
ADMIN_PING
,
ADMIN_EXTENDED_STATUS
,
ADMIN_FLUSH_STATUS
,
ADMIN_FLUSH_PRIVILEGES
,
ADMIN_START_SLAVE
,
ADMIN_STOP_SLAVE
,
ADMIN_FLUSH_THREADS
,
ADMIN_OLD_PASSWORD
#ifdef LATER_HAVE_NDBCLUSTER_DB
,
ADMIN_NDB_MGM
#endif
};
static
const
char
*
command_names
[]
=
{
"create"
,
"drop"
,
"shutdown"
,
...
...
@@ -118,9 +107,6 @@ static const char *command_names[]= {
"ping"
,
"extended-status"
,
"flush-status"
,
"flush-privileges"
,
"start-slave"
,
"stop-slave"
,
"flush-threads"
,
"old-password"
,
#ifdef LATER_HAVE_NDBCLUSTER_DB
"ndb-mgm"
,
#endif
NullS
};
...
...
@@ -224,14 +210,6 @@ static struct my_option my_long_options[] =
{
"shutdown_timeout"
,
OPT_SHUTDOWN_TIMEOUT
,
""
,
(
uchar
**
)
&
opt_shutdown_timeout
,
(
uchar
**
)
&
opt_shutdown_timeout
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
SHUTDOWN_DEF_TIMEOUT
,
0
,
3600
*
12
,
0
,
1
,
0
},
#ifdef LATER_HAVE_NDBCLUSTER_DB
{
"ndbcluster"
,
OPT_NDBCLUSTER
,
""
""
,
(
uchar
**
)
&
opt_ndbcluster
,
(
uchar
**
)
&
opt_ndbcluster
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"ndb-connectstring"
,
OPT_NDB_CONNECTSTRING
,
""
""
,
(
uchar
**
)
&
opt_ndb_connectstring
,
(
uchar
**
)
&
opt_ndb_connectstring
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#endif
{
0
,
0
,
0
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
}
};
...
...
@@ -984,24 +962,6 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
}
mysql
->
reconnect
=
1
;
/* Automatic reconnect is default */
break
;
#ifdef LATER_HAVE_NDBCLUSTER_DB
case
ADMIN_NDB_MGM
:
{
if
(
argc
<
2
)
{
my_printf_error
(
0
,
"Too few arguments to ndb-mgm"
,
error_flags
);
return
1
;
}
{
Ndb_mgmclient_handle
cmd
=
ndb_mgmclient_handle_create
(
opt_ndb_connectstring
);
ndb_mgmclient_execute
(
cmd
,
--
argc
,
++
argv
);
ndb_mgmclient_handle_destroy
(
cmd
);
}
argc
=
0
;
}
break
;
#endif
default:
my_printf_error
(
0
,
"Unknown command: '%-.60s'"
,
error_flags
,
argv
[
0
]);
return
1
;
...
...
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