~starbuggers/sakila-server/mysql-5.1-wl820

Viewing all changes in revision 2661.130.1.

  • Committer: Alexey Botchkov
  • Date: 2008-10-27 09:57:59 UTC
  • mto: (2661.128.4 51mrg)
  • mto: This revision was merged to the branch mainline in revision 2791.
  • Revision ID: holyfoot@mysql.com-20081027095759-6bkwkuv2i99hgzjy
Bug#39289 libmysqld.a calls exit() upon error 

Several functions (mostly in mysqld.cc) directly call
exit() function in case of errors, which is not a desired
behaviour expecially in the embedded-server library.

Fixed by making these functions return error sign instead
of exiting.

per-file comments:
  include/my_getopt.h
Bug#39289 libmysqld.a calls exit() upon error 
  added 'error' retvalue for my_getopt_register_get_addr

  libmysqld/lib_sql.cc
Bug#39289 libmysqld.a calls exit() upon error 
  unireg_clear() function implemented

  mysys/default.c
Bug#39289 libmysqld.a calls exit() upon error 
  error returned instead of exit() call

  mysys/mf_tempdir.c
Bug#39289 libmysqld.a calls exit() upon error 
  free_tmpdir() - fixed so it's not produce crash on uninitialized
    tmpdir structure

  mysys/my_getopt.c
Bug#39289 libmysqld.a calls exit() upon error 
  error returned instead of exit() call

  sql/mysql_priv.h
Bug#39289 libmysqld.a calls exit() upon error 
  unireg_abort definition fixed for the embedded server

  sql/mysqld.cc
Bug#39289 libmysqld.a calls exit() upon error 
  various functions fixed
  error returned instead of exit() call

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: