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
d2115d13
Commit
d2115d13
authored
Nov 15, 2004
by
petr@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some minor IM fixes
parent
4f62e8b9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
20 deletions
+17
-20
server-tools/instance-manager/Makefile.am
server-tools/instance-manager/Makefile.am
+5
-12
server-tools/instance-manager/commands.cc
server-tools/instance-manager/commands.cc
+1
-1
server-tools/instance-manager/instance_map.cc
server-tools/instance-manager/instance_map.cc
+1
-1
server-tools/instance-manager/listener.cc
server-tools/instance-manager/listener.cc
+1
-0
server-tools/instance-manager/manager.cc
server-tools/instance-manager/manager.cc
+3
-0
server-tools/instance-manager/mysqlmanager.cc
server-tools/instance-manager/mysqlmanager.cc
+1
-1
server-tools/instance-manager/options.cc
server-tools/instance-manager/options.cc
+5
-5
No files found.
server-tools/instance-manager/Makefile.am
View file @
d2115d13
...
...
@@ -42,25 +42,19 @@ liboptions_a_SOURCES= options.h options.cc priv.h priv.cc
# MySQL sometimes uses symlinks to reuse code
# All symlinked files are grouped in libnet.a
nodist_libnet_a_SOURCES
=
net_serv.cc client_settings.h
client.c errmsg.c
nodist_libnet_a_SOURCES
=
net_serv.cc client_settings.h
libnet_a_LIBADD
=
$(top_builddir)
/sql/password.
$(OBJEXT)
\
$(top_builddir)
/sql/pack.
$(OBJEXT)
\
$(top_builddir)
/sql/sql_state.
$(OBJEXT)
$(top_builddir)
/sql/sql_state.
$(OBJEXT)
\
$(top_builddir)
/sql/mini_client_errors.
$(OBJEXT)
\
$(top_builddir)
/sql/client.
$(OBJEXT)
CLEANFILES
=
net_serv.cc client
.c client_settings.h errmsg.c
CLEANFILES
=
net_serv.cc client
_settings.h
net_serv.cc
:
Makefile
rm
-f
$(srcdir)
/net_serv.cc
@
LN_CP_F@
$(top_srcdir)
/sql/net_serv.cc
$(srcdir)
/net_serv.cc
client.c
:
Makefile
rm
-f
$(srcdir)
/client.c
@
LN_CP_F@
$(top_srcdir)
/sql-common/client.c
$(srcdir)
/client.c
errmsg.c
:
Makefile
rm
-f
$(srcdir)
/errmsg.c
@
LN_CP_F@
$(top_srcdir)
/libmysql/errmsg.c
$(srcdir)
/errmsg.c
client_settings.h
:
Makefile
rm
-f
$(srcdir)
/client_settings.h
@
LN_CP_F@
$(top_srcdir)
/sql/client_settings.h
$(srcdir)
/client_settings.h
...
...
@@ -74,7 +68,6 @@ mysqlmanager_SOURCES= command.cc command.h mysqlmanager.cc \
mysql_connection.h mysql_connection.cc
\
user_map.h user_map.cc
\
messages.h messages.cc
\
$(top_srcdir)
/sql/sql_string.cc
\
commands.h commands.cc
\
factory.h factory.cc
\
instance.h instance.cc
\
...
...
server-tools/instance-manager/commands.cc
View file @
d2115d13
...
...
@@ -408,7 +408,7 @@ int Stop_instance::execute(struct st_net *net, ulong connection_id)
stop_guard
(
instance
);
if
(
err_code
=
instance
->
stop
())
return
err_code
;
printf
(
"instance was stopped
\n
"
);
net_send_ok
(
net
,
connection_id
);
return
0
;
}
...
...
server-tools/instance-manager/instance_map.cc
View file @
d2115d13
...
...
@@ -158,8 +158,8 @@ int Instance_map::flush_instances()
hash_free
(
&
hash
);
hash_init
(
&
hash
,
default_charset_info
,
START_HASH_SIZE
,
0
,
0
,
get_instance_key
,
delete_instance
,
0
);
rc
=
load
();
pthread_mutex_unlock
(
&
LOCK_instance_map
);
rc
=
load
();
return
rc
;
}
...
...
server-tools/instance-manager/listener.cc
View file @
d2115d13
...
...
@@ -24,6 +24,7 @@
#include <mysql.h>
#include <violite.h>
#include <sys/un.h>
#include <sys/stat.h>
#include "thread_registry.h"
#include "options.h"
...
...
server-tools/instance-manager/manager.cc
View file @
d2115d13
...
...
@@ -90,6 +90,7 @@ void manager(const Options &options)
sigemptyset
(
&
mask
);
sigaddset
(
&
mask
,
SIGINT
);
sigaddset
(
&
mask
,
SIGTERM
);
sigaddset
(
&
mask
,
SIGPIPE
);
sigaddset
(
&
mask
,
SIGHUP
);
/*
We want this signal to be blocked in all theads but the signal
...
...
@@ -159,6 +160,8 @@ void manager(const Options &options)
*/
guardian_thread
.
start
();
signal
(
SIGPIPE
,
SIG_IGN
);
while
(
!
shutdown_complete
)
{
sigwait
(
&
mask
,
&
signo
);
...
...
server-tools/instance-manager/mysqlmanager.cc
View file @
d2115d13
...
...
@@ -179,7 +179,7 @@ static volatile sig_atomic_t is_terminated= 0;
void
terminate
(
int
signo
)
{
is_terminated
=
signo
;
is_terminated
=
signo
;
}
...
...
server-tools/instance-manager/options.cc
View file @
d2115d13
...
...
@@ -79,7 +79,7 @@ static struct my_option my_long_options[] =
(
gptr
*
)
&
Options
::
socket_file_name
,
(
gptr
*
)
&
Options
::
socket_file_name
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"bind
_
address"
,
OPT_BIND_ADDRESS
,
"Bind address to use for connection."
,
{
"bind
-
address"
,
OPT_BIND_ADDRESS
,
"Bind address to use for connection."
,
(
gptr
*
)
&
Options
::
bind_address
,
(
gptr
*
)
&
Options
::
bind_address
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
@@ -93,24 +93,24 @@ static struct my_option my_long_options[] =
(
gptr
*
)
&
Options
::
password_file_name
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"default
_mysqld_
path"
,
OPT_MYSQLD_PATH
,
"Where to look for MySQL"
{
"default
-mysqld-
path"
,
OPT_MYSQLD_PATH
,
"Where to look for MySQL"
" Server binary."
,
(
gptr
*
)
&
Options
::
default_mysqld_path
,
(
gptr
*
)
&
Options
::
default_mysqld_path
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"default
_admin_
user"
,
OPT_DEFAULT_ADMIN_USER
,
"Username to shutdown MySQL"
{
"default
-admin-
user"
,
OPT_DEFAULT_ADMIN_USER
,
"Username to shutdown MySQL"
" instances."
,
(
gptr
*
)
&
Options
::
default_admin_user
,
(
gptr
*
)
&
Options
::
default_admin_user
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"default
_admin_
password"
,
OPT_DEFAULT_ADMIN_PASSWORD
,
"Password to"
{
"default
-admin-
password"
,
OPT_DEFAULT_ADMIN_PASSWORD
,
"Password to"
"shutdown MySQL instances."
,
(
gptr
*
)
&
Options
::
default_admin_password
,
(
gptr
*
)
&
Options
::
default_admin_password
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"monitoring
_
interval"
,
OPT_MONITORING_INTERVAL
,
"Interval to monitor instances"
{
"monitoring
-
interval"
,
OPT_MONITORING_INTERVAL
,
"Interval to monitor instances"
" in seconds."
,
(
gptr
*
)
&
Options
::
monitoring_interval
,
(
gptr
*
)
&
Options
::
monitoring_interval
,
...
...
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