3381 Vasil Dimov 2011-08-17
Blind attempt to fix BUG 12881278 - MAIN.MYISAM TEST FAILS ON LINUX
The printed text is truncated on char 63:
"MySQL thread id 1236, OS thread handle 0x7ff187b96700, query id"
still I do not understand how this truncation could have caused the
main.myisam failure but anyway - the buffer needs to be increased.
modified:
sql/sql_class.cc
3380 Georgi Kodinov 2011-08-17
Bug #11746029: 22615: MYSQL SERVER INCORRECTLY CATOGORIZES THE LOST+FOUND DIRECTORY AS A DATABA
Implemented an --ignore-db-dir option that takes a valid file name or an empty string.
You can specify multiple options.
When a non-empty string is specified it's added as a directory name to the list of directories to ignore
when executing SHOW commands and filling in INFORMATION_SCHEMA tables.
When an empty string is specified as an argument the list is reset to empty.
Note that the above list of ignored directories doesn't affect other SQL commands like e.g. USE or SELECT etc.
Added a read-only global @@ignore_db_dirs system variable that will contain the current list in effect.
In addition to the list above the server will always ignore the directories starting with a dot (.). This is safe
because since mysql-5.1 a name of a database directory can't start with a dot (.) thanks to the fact that we
encode database and table names.
Added a test case.
Fixed the affected test cases.
Fixed the memory handling when converting the directories array to a hash fails for some reason.
added:
mysql-test/suite/sys_vars/r/ignore_db_dirs_basic.result
mysql-test/suite/sys_vars/t/ignore_db_dirs_basic-master.opt
mysql-test/suite/sys_vars/t/ignore_db_dirs_basic.test
modified:
mysql-test/r/mysqld--help-notwin.result
mysql-test/r/mysqld--help-win.result
sql/mysqld.cc
sql/mysqld.h
sql/sql_show.cc
sql/sql_show.h
sql/sys_vars.cc
=== modified file 'sql/sql_class.cc'
--- a/sql/sql_class.cc revid:georgi.kodinov@stripped
+++ b/sql/sql_class.cc revid:vasil.dimov@stripped
@@ -666,7 +666,7 @@ char *thd_security_context(THD *thd, cha
{
String str(buffer, length, &my_charset_latin1);
const Security_context *sctx= &thd->main_security_ctx;
- char header[64];
+ char header[256];
int len;
/*
The pointers thd->query and thd->proc_info might change since they are
No bundle (reason: useless for push emails).
| Thread |
|---|
| • bzr push into mysql-trunk branch (vasil.dimov:3380 to 3381) | vasil.dimov | 22 Aug |