blob: 6e427f26fd6559df2c6acc84f0ca7e459861fd7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Common test pattern for options that control direct i/o
#
# Required input:
# $io_option - name and assignment to enable on server command line
--source include/have_direct_io.inc
--echo Checking direct reads
--let $restart_noprint=2
--let $_mysqld_option=$io_option
--source include/restart_mysqld_with_option.inc
CREATE TABLE t1 (pk INT PRIMARY KEY DEFAULT '0', a INT(11), b CHAR(8)) ENGINE=rocksdb;
SHOW CREATE TABLE t1;
INSERT INTO t1 VALUES (1, 1,'a');
INSERT INTO t1 (a,b) VALUES (2,'b');
set global rocksdb_force_flush_memtable_now=1;
--sorted_result
SELECT a,b FROM t1;
DROP TABLE t1;
# cleanup
--let _$mysqld_option=
--source include/restart_mysqld.inc
|