1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
<?xml version="1.0" encoding="utf-8"?>
<test>
<name>merge vs out-of-bounds dictionary reads</name>
<config>
indexer
{
mem_limit = 16M
}
searchd
{
<searchd_settings/>
}
source delta
{
type = mysql
<sql_settings/>
sql_query = select id, text from sph_test;
}
index delta
{
source = delta
path = <data_path/>/delta
charset_table = W,0..9
}
source main
{
type = mysql
<sql_settings/>
sql_query = select 2, 'W0000' as text;
}
index main
{
source = main
path = <data_path/>/main
charset_table = W,0..9
}
</config>
<indexer>
<run>--merge main delta</run>
</indexer>
<db_create>
create table sph_test
(
id int not null,
text text(262144) not null
) ENGINE=MYISAM
</db_create>
<db_drop>
drop table if exists sph_test;
</db_drop>
<custom_insert><![CDATA[
$text = '';
for ( $i=0; $i < 1500; $i++ )
$text .= sprintf ( 'W%04d ', $i );
mysql_query ( "insert into sph_test values ( 1, '$text' )" );
]]></custom_insert>
<queries>
<query index="main">W0000</query>
<query index="main">W1023</query>
<query index="main">W1024</query>
<query index="main">W1025</query>
<query index="main">W1188</query>
<query index="main">W1498</query>
<query index="main">W1499</query>
</queries>
</test>
|