- 01 Feb, 2017 4 commits
-
-
Marko Mäkelä authored
As noted in MDEV-11947, we should disable the InnoDB doublewrite buffer during the tests, because when rewriting page checksums, innochecksum would skip the pages that are in the doublewrite buffer area. Because the doublewrite buffer is emptied on server startup and not shutdown, we should initially start with the doublewrite buffer disabled, so that there will be no warning messages for wrong page checksums in the doublewrite buffer. Also, correct the obvious typo where restart_options should have been $restart_parameters, so that InnoDB is actually verifying that the checksums were rewritten.
-
Igor Babaev authored
Now ROWS is a reserved key word, so cannot be used as an alias name.
-
Igor Babaev authored
This bug happens due to a conflict in the construct window_spec. (win_ref conflicts with the non-reserved key word ROWS). The standard SQL-2003 says that ROWS is a reserved key word. Made this key word reserved in our grammar and removed the conflict.
-
Igor Babaev authored
Now, after the implementation of mdev-8646 "Re-engineer the code for post-join operations" create_sort_index() can be called for subqueries.
-
- 31 Jan, 2017 4 commits
-
-
Alexander Barkov authored
Adding keywords the following keywords into the "keyword" rules: - EXCLUDE - UNBOUNDED - PRECEDING - FOLLOWING - TIES - OTHERS They are non-reserved words in the SQL standard (checked in a SQL-2011 draft), and they don't cause any conflicts in sql_yacc.yy.
-
Marko Mäkelä authored
Call trx_purge_state() only once, to avoid a race condition if the value changes while the conditions are being evaluated.
-
Marko Mäkelä authored
Also, work around MDEV-11948 by disabling native asynchronous I/O.
-
Marko Mäkelä authored
Remove the debug parameter innodb_force_recovery_crash that was introduced into MySQL 5.6 by me in WL#6494 which allowed InnoDB to resize the redo log on startup. Let innodb.log_file_size actually start up the server, but ensure that the InnoDB storage engine refuses to start up in each of the scenarios.
-
- 30 Jan, 2017 5 commits
-
-
Sergei Golubchik authored
this fixes occasional main.cte_recursive failures
-
Marko Mäkelä authored
-
Marko Mäkelä authored
-
Sergei Golubchik authored
this fixes the crash in innodb.101_compatibility test
-
Sergei Golubchik authored
on shutdown it might happen that 1. the server starts killing THDs 2. it sets thd->killed in srv_purge_coordinator 3. srv_purge_coordinator notices that and tells srv_workers to exit 4. srv_worker will notice that and will start exiting, ... assert here ... 5. server sets thd->killed in worker threads that is, it might happen that the assert is tested before srv_worker's THD got the kill signal. this fixes various random crashes (on this assertion) on shutdown in tests
-
- 29 Jan, 2017 3 commits
-
-
Sergei Golubchik authored
ninja doesn't like when a dummy target name matches a generated file name
-
Sergei Golubchik authored
fix the check (must be have_ not HAVE_) also remove -O1 and -Wno-error, they aren't not needed for asan
-
Sergei Golubchik authored
also move *.zip files from t/ to std_data/
-
- 28 Jan, 2017 3 commits
-
-
Igor Babaev authored
The temporary tables created for recursive table references should be closed in close_thread_tables(), because they might be used in the statements like ANALYZE WITH r AS (...) SELECT * from r where r is defined through recursion.
-
Sergei Golubchik authored
that failed main.mysqlbinlog
-
Sergei Golubchik authored
1. wait for thd_destructor_proxy thread to start after creating it. this ensures that the thread is ready to receive a shutdown signal whenever we want to send it. 2. join it at shutdown, this guarantees that no innodb THD will exist after innobase_end(). this fixes crashes and memory leaks in main.mysqld_option_err (were innodb was started and then immediately shut down).
-
- 27 Jan, 2017 9 commits
-
-
Marko Mäkelä authored
-
Marko Mäkelä authored
As noted in MDEV-8841, any test that kills the server must issue FLUSH TABLES, so that tables of crash-unsafe storage engines will not be corrupted. Consistently issue this statement after any call mtr.add_suppression() calls. Also, do not invoke shutdown_server directly, but use helpers instead.
-
Jan Lindström authored
Skip test if system can't do trim operation.
-
Marko Mäkelä authored
InnoDB would refuse to start up if there is a mismatch on the size of the system tablespace files. However, before this check is conducted, the system tablespace may already have been heavily modified. InnoDB should perform the size check as early as possible. recv_recovery_from_checkpoint_finish(): Move the recv_apply_hashed_log_recs() call to innobase_start_or_create_for_mysql(). innobase_start_or_create_for_mysql(): Test the mutex functionality before doing anything else. Use a compile_time_assert() for a sizeof() constraint. Check the size of the system tablespace as early as possible.
-
Marko Mäkelä authored
recv_scan_log_recs(): Remember if redo log apply is needed, even if starting up in innodb_read_only mode. recv_recovery_from_checkpoint_start_func(): Refuse innodb_read_only startup if redo log apply is needed.
-
Marko Mäkelä authored
-
Jan Lindström authored
Do wait only if innodb_num_page_compressed_trim_op shows that we have succeed to do at least few trim operations (and that will happen on insert if possible).
-
Jan Lindström authored
Added flush tables to avoid corruption of mtr/test_suppressions table.
-
Jan Lindström authored
-
- 26 Jan, 2017 5 commits
-
-
Vladislav Vaintroub authored
DeviceIoControl(IOCTL_STORAGE_QUERY_PROPERTY) needs volume handle, not the handle to ordinary file.
-
Vladislav Vaintroub authored
-
Alexey Botchkov authored
paths ending on [0]..[0] should be handled in conforming manner.
-
Jan Lindström authored
-
Jan Lindström authored
Both dict_foreign_find_index and dict_foreign_qualify_index did not consider virtual columns as possible foreign key columns and there was assertion to disable virtual columns. Fixed by also looking referencing and referenced column from virtual columns if needed.
-
- 25 Jan, 2017 7 commits
-
-
Marko Mäkelä authored
-
Marko Mäkelä authored
-
Marko Mäkelä authored
This should be a non-functional change (apart from removing the redundant data field).
-
Marko Mäkelä authored
In the merge of MDEV-11623 from 10.1 to 10.2, we added a call to fsp_flags_try_adjust() which causes the data file to be opened via the buffer pool while fil_ibd_open() is holding another open handle to the file.
-
Jan Lindström authored
-
Jan Lindström authored
-
Jan Lindström authored
Problem was that on import with buffered input/output trim is not possible as we write several pages in one write.
-