mariadb/server-tools/instance-manager
unknown 779d2f16ec Fix Bug #22242 Instance Manager: option-parsing errors
There was a memory overrun, which resulted in safemalloc
errors. Recommit with post-review fixes.


server-tools/instance-manager/instance_options.cc:
  Memory was overrun here: convert_dirname() adds a slash to the
  end of the string. Then it was removed (with end[-1]=0), but
  the overrun still happened, which caused sefemalloc to complain.
  
  The problem stemed from the fact that we converted the path to the
  binary, not to the directory. Now we first truncate the path and
  then convert the name of the directory, where the binary resides.
  
  E.g. Suppose that IM got an option --mysqld-path='/usr/local/bin/mysqld'.
  Then convert dirname was called. This routine takes a path to the
  dir (not binary!) and converts it for usage under particular OS.
  And at least for *nixes it *always* adds slash. E.g. for the path above
  convert_dirname() will result in path: '/usr/local/bin/mysqld/'
  Note the last slash. 
  
  The fix is to convert the path to the dir where the binary resides:
  /usr/local/bin/. Then we put back the binary name.
2006-11-22 19:07:05 +03:00
..
buffer.cc Some minor fixes revealed as warnings by 2005-09-23 21:28:56 +03:00
buffer.h Some minor fixes revealed as warnings by 2005-09-23 21:28:56 +03:00
CMakeLists.txt Additional files for cmake support 2006-08-31 19:52:42 +02:00
command.cc Some minor fixes revealed as warnings by 2005-09-23 21:28:56 +03:00
command.h This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00
commands.cc Fixed a lot of compiler warnings (Mainly in mysqld and instance manager) 2006-11-01 19:41:09 +02:00
commands.h Fix compilation problems on Windows and SUN Solaris. 2006-05-19 04:51:23 +04:00
exit_codes.h This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00
guardian.cc Fixed a lot of compiler warnings (Mainly in mysqld and instance manager) 2006-11-01 19:41:09 +02:00
guardian.h Merge bodhi.local:/opt/local/work/mysql-5.0-runtime 2006-10-23 12:35:56 +04:00
IMService.cpp Fix compilation problems on Windows and SUN Solaris. 2006-05-19 04:51:23 +04:00
IMService.h This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00
instance.cc Fixed a lot of compiler warnings (Mainly in mysqld and instance manager) 2006-11-01 19:41:09 +02:00
instance.h Fix for BUG#17486: IM: race condition on exit. 2006-10-24 18:23:16 +04:00
instance_map.cc Fix for BUG#17486: IM: race condition on exit. 2006-10-24 18:23:16 +04:00
instance_map.h Fix for BUG#17486: IM: race condition on exit. 2006-10-24 18:23:16 +04:00
instance_options.cc Fix Bug #22242 Instance Manager: option-parsing errors 2006-11-22 19:07:05 +03:00
instance_options.h Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new 2006-05-22 14:22:58 +04:00
listener.cc Fix for BUG#17486: IM: race condition on exit. 2006-10-24 18:23:16 +04:00
listener.h This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00
log.cc IM polishing: log more information in log. 2006-10-24 18:31:10 +04:00
log.h Various fixes (cleanups, valgrind, makefiles, ...) 2005-02-03 20:48:58 +03:00
Makefile.am make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
manager.cc Fix for BUG#17486: IM: race condition on exit. 2006-10-24 18:23:16 +04:00
manager.h Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new 2006-05-22 14:22:58 +04:00
messages.cc Fix Bug #22494 Instance Manager: Inconsistent error message wording 2006-11-07 05:21:33 +03:00
messages.h Fix for AIX compilation failure: sacred knowledge of my_global.h nature (it should be 2005-03-22 02:04:14 +03:00
mysql_connection.cc Merge alik.:/mnt/raid/alik/MySQL/devel/5.1-monty 2006-11-03 14:00:35 +03:00
mysql_connection.h fix compilation failure on serg's box: we shouldn't 2005-10-19 00:31:00 +04:00
mysql_manager_error.h This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00
mysqlmanager.cc Merged. 2006-05-22 15:20:40 +04:00
mysqlmanager.vcproj mysqlmanager.vcproj: 2006-07-22 02:00:33 +02:00
options.cc Merge bodhi.local:/opt/local/work/mysql-5.0-runtime 2006-10-23 12:35:56 +04:00
options.h Merge bodhi.local:/opt/local/work/mysql-5.0-runtime 2006-10-23 12:35:56 +04:00
parse.cc Fixed a lot of compiler warnings (Mainly in mysqld and instance manager) 2006-11-01 19:41:09 +02:00
parse.h Fixes for Windows compilation failures. 2006-07-07 16:14:07 +04:00
parse_output.cc This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00
parse_output.h This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00
portability.h Merge zippy.cornsilk.net:/home/cmiller/work/mysql/merge/mysql-5.0 2006-08-21 12:59:46 -04:00
priv.cc Polishing: C_STRING_WITH_SIZE() was renamed to C_STRING_WITH_LEN(). 2006-06-19 15:17:15 +04:00
priv.h This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00
protocol.cc This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00
protocol.h This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00
README First implementation of instance-manager carcass: 2003-08-16 21:44:24 +04:00
thread_registry.cc Fix for BUG#17486: IM: race condition on exit. 2006-10-24 18:23:16 +04:00
thread_registry.h Fix for BUG#17486: IM: race condition on exit. 2006-10-24 18:23:16 +04:00
user_management_commands.cc WL#3298: IM: make command-line option names consistent 2006-06-19 14:41:29 +04:00
user_management_commands.h WL#3298: IM: make command-line option names consistent 2006-06-19 14:41:29 +04:00
user_map.cc Fixed a lot of compiler warnings (Mainly in mysqld and instance manager) 2006-11-01 19:41:09 +02:00
user_map.h This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00
WindowsService.cpp This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00
WindowsService.h This is an implementation of two WL items: 2006-05-18 18:57:50 +04:00

Instance Manager - manage MySQL instances locally and remotely.

File description:
 mysqlmanager.cc - entry point to the manager, main, 
 options.{h,cc} - handle startup options
 manager.{h,cc} - manager process
 mysql_connection.{h,cc} - handle one connection with mysql client.

See also instance manager architecture description in mysqlmanager.cc.