diff options
author | unknown <cmiller@zippy.cornsilk.net> | 2006-11-11 09:02:01 -0500 |
---|---|---|
committer | unknown <cmiller@zippy.cornsilk.net> | 2006-11-11 09:02:01 -0500 |
commit | c0c14155eeee01d4c94f29b96237c01da630b32a (patch) | |
tree | 9faad96b7f62bdb80cb0ec3ad987f095bd05fa7d | |
parent | 700fa8bd8472477ede81e839d6cdcb557341933d (diff) | |
parent | 82ad1db0af6ecb9b51dbdbb0779dad0c9840d89c (diff) | |
download | mariadb-git-c0c14155eeee01d4c94f29b96237c01da630b32a.tar.gz |
Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug22860/my51-bug22860
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1-maint
sql/mysqld.cc:
Auto merged
-rw-r--r-- | BitKeeper/etc/collapsed | 2 | ||||
-rw-r--r-- | sql/mysqld.cc | 27 |
2 files changed, 21 insertions, 8 deletions
diff --git a/BitKeeper/etc/collapsed b/BitKeeper/etc/collapsed index 226f0f1a2e2..ddaafba882c 100644 --- a/BitKeeper/etc/collapsed +++ b/BitKeeper/etc/collapsed @@ -17,3 +17,5 @@ 452a92d0-31-8wSzSfZi165fcGcXPA 454a7ef8gdvE_ddMlJyghvOAkKPNOQ 454f8960jsVT_kMKJtZ9OCgXoba0xQ +4554a95d7txO1DuO9G3nAizI3SkFAA +4554b3722d71SbPiI2Gx-RhbZjmuIQ diff --git a/sql/mysqld.cc b/sql/mysqld.cc index bcc2d4c49dd..d50d89ee0a9 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -340,7 +340,7 @@ bool opt_error_log= IF_WIN(1,0); bool opt_disable_networking=0, opt_skip_show_db=0; my_bool opt_character_set_client_handshake= 1; bool server_id_supplied = 0; -bool opt_endinfo,using_udf_functions; +bool opt_endinfo, using_udf_functions; my_bool locked_in_memory; bool opt_using_transactions, using_update_log; bool volatile abort_loop; @@ -2149,13 +2149,24 @@ later when used with nscd), disable LDAP in your nsswitch.conf, or use a\n\ mysqld that is not statically linked.\n"); #endif - if (test_flags & TEST_CORE_ON_SIGNAL) - { - fprintf(stderr, "Writing a core file\n"); - fflush(stderr); - write_core(sig); - } - exit(1); + if (locked_in_memory) + { + fprintf(stderr, "\n\ +The \"--memlock\" argument, which was enabled, uses system calls that are\n\ +unreliable and unstable on some operating systems and operating-system\n\ +versions (notably, some versions of Linux). This crash could be due to use\n\ +of those buggy OS calls. You should consider whether you really need the\n\ +\"--memlock\" parameter and/or consult the OS distributer about \"mlockall\"\n\ +bugs.\n"); + } + + if (test_flags & TEST_CORE_ON_SIGNAL) + { + fprintf(stderr, "Writing a core file\n"); + fflush(stderr); + write_core(sig); + } + exit(1); } #ifndef SA_RESETHAND |