myisam/myisamchk.c:
Removed warning from fulltext when repairing many tables with fulltext index
sql/init.cc:
Remove not used variables
sql/mysql_priv.h:
Remove not used variables
sql/mysqld.cc:
Removed not used variables
Added option --read-only
Change opt_do_pstack and master_ssl to get them to work with my_getopt
sql/set_var.cc:
Option --read-only
sql/sql_parse.cc:
Option --read-only
Better instructions for the user if adding of new ibdata files fails
innobase/srv/srv0start.c:
Better instructions for the user if adding of new ibdata files fails
When calculating the buf pool dirty pages ratio, add also free pages to the LRU list length: no need to active flushing if there are lots of free pages in the buffer pool
innobase/buf/buf0buf.c:
When calculating the buf pool dirty pages ratio, add also free pages to the LRU list length: no need to active flushing if there are lots of free pages in the buffer pool
Search first only 10 % of the LRU list for a replaceable block before doing an LRU flush; enable again flushing of close pages also in a flush list (checkpointing) flush
trx0trx.c:
Add forgotten return value (it was not used anywhere, fortunately)
ha_innodb.h, mysql_priv.h:
Move declaration of srv_buf_pool_max_modified_pct to ha_innodb.h and enclose it to denote it is a C variable, not C++
sql/mysql_priv.h:
Move declaration of srv_buf_pool_max_modified_pct to ha_innodb.h and enclose it to denote it is a C variable, not C++
sql/ha_innodb.h:
Move declaration of srv_buf_pool_max_modified_pct to ha_innodb.h and enclose it to denote it is a C variable, not C++
innobase/trx/trx0trx.c:
Add forgotten return value (it was not used anywhere, fortunately)
innobase/include/buf0lru.h:
Search first only 10 % of the LRU list for a replaceable block before doing an LRU flush; enable again flushing of close pages also in a flush list (checkpointing) flush
innobase/buf/buf0buf.c:
Search first only 10 % of the LRU list for a replaceable block before doing an LRU flush; enable again flushing of close pages also in a flush list (checkpointing) flush
innobase/buf/buf0flu.c:
Search first only 10 % of the LRU list for a replaceable block before doing an LRU flush; enable again flushing of close pages also in a flush list (checkpointing) flush
innobase/buf/buf0lru.c:
Search first only 10 % of the LRU list for a replaceable block before doing an LRU flush; enable again flushing of close pages also in a flush list (checkpointing) flush
- QNX 6.2.1 actually defines HAVE_RINT
- fixed rint(A) #define as it was causing compile errors on QNX
include/my_global.h:
- QNX 6.2.1 actually defines HAVE_RINT
- fixed rint(A) #define as it was causing compile errors on QNX
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
into the binlog), SLAVE START -> START SLAVE, error test changes.
client/mysqladmin.c:
Now that FLUSH TABLES and some other FLUSH go into the binlog, the same commands
issued from mysqladmin should also go into the binlog. How could I explain to
a user that "mysql -e 'flush tables'" is not exactly the same as "mysqladmin
flush-tables" ?? So I replace mysql_refresh() by mysql_query().
Also SLAVE START -> START SLAVE to make this work with 4.1 (it won't work with
3.23 anymore).
Also the code tested for mysql_refresh() < 0 for errors, but this cannot happen :
- mysql_refresh() calls simple_command()
- in 4.1 the return type of simple_command() is my_bool, and I have checked the 4.1 libmysql
code and it returns 0 or 1, not negative values.
- note that in 4.0 libmysql, simple_command() returns int which can be < 0, but we don't
care here as we link the 4.1 mysqladmin with the 4.1 libmysql.
Btw, some other parts of the code already checked
for mysql_refresh() != 0, not < 0. So now it's homogenous : we always test for != 0
instead of < 0.
now by default, FLUSH, OPTIMIZE, ANALYZE, REPAIR commands are written to the
binlog, unless the new NO_WRITE_TO_BINLOG keyword was used :
OPTIMIZE NO_WRITE_TO_BINLOG table t;
Previously these commands were never written to the binlog, but there are
2 reasons to change this :
- the RENAME TABLE in MERGE table bug (#175) on slave
- the possible "differently optimised queries may lead to different
updates on the master and slave" bug, until we have automatic ORDER BY.
FLUSH LOGS/SLAVE/MASTER/TABLES WITH READ LOCK are never written to the binlog.
New test for the new logging behaviour.
Other small change : reload_acl_and_cache() and reset_slave() don't send their errors themselves,
this is more usual.
mysql-test/mysql-test-run.sh:
rpl_flush_tables.test generates 'table xx is open on rename'.
This is normal and done on purpose, so don't report it.
sql/lex.h:
New keyword NO_WRITE_TO_BINLOG
sql/mysql_priv.h:
reload_acl_and_cache() now decides if we want to write the FLUSH command
to the binlog or not (FLUSH MASTER, FLUSH SLAVE, FLUSH TABLES
WITH READ LOCK, FLUSH LOGS cannot go into the binlog).
sql/mysqld.cc:
updated for new prototype of reload_acl_and_cache().
sql/sql_lex.h:
New boolean no_write_to_binlog in the lex structure.
sql/sql_parse.cc:
reload_acl_and_cache() now does not send its errors itself;
it saves the error and the caller sends it.
FLUSH, OPTIMIZE, ANALYZE, REPAIR commands don't write to the binlog
if the NO_WRITE_TO_BINLOG keyword was used.
sql/sql_repl.cc:
reset_slave() does not send its errors himself.
sql/sql_yacc.yy:
New optional keyword NO_WRITE_TO_BINLOG for OPTIMIZE/ANALYZE/REPAIR/FLUSH :
OPTIMIZE NO_WRITE_TO_BINLOG TABLE t;
ANALYZE NO_WRITE_TO_BINLOG TABLE t;
REPAIR NO_WRITE_TO_BINLOG TABLE t;
FLUSH NO_WRITE_TO_BINLOG TABLE t;
mysql-test/r/create.result:
Update for new error messages
mysql-test/r/type_blob.result:
Update for new error messages
strings/my_strtoll10-x86.s:
Faster str->longlong
strings/my_strtoll10.c:
Updated comments
mysql-test/mysql-test-run.sh:
Ensure that tests are sorted
mysql-test/r/type_decimal.result:
Test for bug with decimal()
mysql-test/t/type_decimal.test:
Test for bug with decimal()
sql/sql_parse.cc:
Fixed bug in CREATE ... DECIMAL(-1,1)
Check that pthread_mutex_init and pthread_mutex_destroy return 0
innobase/os/os0sync.c:
Check that pthread_mutex_init and pthread_mutex_destroy return 0
Backport from 4.0: We had forgotten to call pthread_mutex_destroy when we free an OS mutex in Unix
innobase/os/os0sync.c:
Backport from 4.0: We had forgotten to call pthread_mutex_destroy when we free an OS mutex in Unix
We had forgotten to call pthread_mutex_destroy when we free an OS mutex in Unix
innobase/os/os0sync.c:
We had forgotten to call pthread_mutex_destroy when we free an OS mutex in Unix
Fix for USE_FRM and crashed index file
configure.in:
Fix for MacOSX and symlinks
myisam/mi_open.c:
Give better error message in case of of crashed index file
mysql-test/r/repair.result:
new test case
mysql-test/r/update.result:
new test case
mysql-test/t/repair.test:
Added test with crashed MyISAM index header
mysql-test/t/update.test:
Added test case from bugs system
sql/handler.cc:
Indentation changes
sql/sql_table.cc:
Fix for USE_FRM and crashed index file
new test for this.
sql/item_create.cc:
Proper replication of CONNECTION_ID() (bug 177).
This is just for replication; mysqlbinlog|mysql still does not work
with CONNECTION_ID(), it will wait for row-level binlogging.
sql/item_strfunc.cc:
Proper replication of the new 4.1 PASSWORD() (bug 344)
mysql-test/r/update.result:
new test
mysql-test/t/update.test:
Test of UPDATE ... LIMIT
sql/sql_update.cc:
Fixed 'Unknown error' when using 'UPDATE ... LIMIT'
(thanks to Christian Hammers from the Debian project for providing it)
- Updated version number in man pages (3.23 -> 4.0)
man/Makefile.am:
- added mysql_fix_privilege_tables(1) man page to man_MANS
man/isamchk.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
man/isamlog.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
man/mysql.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
man/mysql_zap.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
man/mysqlaccess.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
man/mysqladmin.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
man/mysqld.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
man/mysqld_multi.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
man/mysqld_safe.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
man/mysqldump.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
man/mysqlshow.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
man/perror.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
man/replace.1:
- Updated version number ("MySQL-3.23" -> "MySQL 4.0")
- Fix for QNX: UNIX sockets available since 6.2.1
include/my_global.h:
Fix for QNX: UNIX sockets available since 6.2.1
mysql-test/r/variables.result:
Fixed a bug in myisam_max_[extra]_sort_file_size, bug ID 339
mysql-test/t/variables.test:
Fixed a bug in myisam_max_[extra]_sort_file_size, bug ID 339
sql/mysqld.cc:
Fixed a bug in myisam_max_[extra]_sort_file_size, bug ID 339
sql/set_var.cc:
Fixed a bug in myisam_max_[extra]_sort_file_size, bug ID 339
sql/set_var.h:
Fixed a bug in myisam_max_[extra]_sort_file_size, bug ID 339
Fixed wrong logging of Access denied error (Bug #398)
include/my_global.h:
Fix for QNX
mysql-test/r/union.result:
new test case
mysql-test/t/union.test:
Test of bug in union and left join
mysys/my_seek.c:
Safety fix to find out when pos gets a wrong value
sql/field.h:
Fix for UNION and LEFT JOIN
sql/mysql_priv.h:
Fix for UNION and LEFT JOIN
sql/sql_base.cc:
Fix for UNION and LEFT JOIN
sql/sql_insert.cc:
Fix for UNION and LEFT JOIN
sql/sql_parse.cc:
Fixed wrong logging of Access denied error
sql/sql_union.cc:
Fix for UNION and LEFT JOIN
sql/sql_update.cc:
Fix for UNION and LEFT JOIN