mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Verify that if Maria table is absent or initially empty, CREATE SELECT and INSERT SELECT with enough
rows cause no logging mysql-test/include/maria_empty_logs.inc: don't assume that mysqltest is the default db mysql-test/r/maria-no-logging.result: result. Without the optimization of disabling logging in ha_maria::start_bulk_insert(), we see 24k instead of 16k, in the cases where the table is empty. mysql-test/r/maria-purge.result: side effect of change to maria_empty_logs.inc mysql-test/t/maria-purge.test: maria-purge.test used to fail when run in a group like this "--big t/*maria*.test" because SHOW ENGINE MARIA LOGS was influenced by previous tests; deleting logs to fix that.
This commit is contained in:
@ -4,6 +4,9 @@
|
||||
# API: set mel_keep_control_file=1 if want to keep control file;
|
||||
# uses vardir, port and socket.
|
||||
|
||||
connection default;
|
||||
let $default_db=`select database()`;
|
||||
|
||||
connection admin;
|
||||
|
||||
-- echo * shut down mysqld, removed logs, restarted it
|
||||
@ -71,4 +74,4 @@ EOF
|
||||
connection default;
|
||||
# the effect of "use" is lost after a restart so we are back into db "test",
|
||||
# because connection 'default' was created with db "test".
|
||||
use mysqltest;
|
||||
eval use $default_db;
|
||||
|
Reference in New Issue
Block a user