Commit 1388afcd authored by Sergei Petrunia's avatar Sergei Petrunia

MDEV-13413: After the merge rocksdb.drop_table fails with warnings

- Fix the bad merge in drop_table.test
- Remove the obsolete rocksdb_info_log_level=info_level option
  which caused warnings to be found in the error log.
parent 6bf757a2
--rocksdb_max_subcompactions=1
--rocksdb_info_log_level=info_level
--rocksdb_default_cf_options=write_buffer_size=512k;target_file_size_base=512k;level0_file_num_compaction_trigger=2;level0_slowdown_writes_trigger=-1;level0_stop_writes_trigger=1000;max_bytes_for_level_base=1m
......@@ -107,44 +107,5 @@ let $wait_condition = select count(*) = 0
where TYPE = 'DDL_DROP_INDEX_ONGOING';
--source include/wait_condition.inc
perl;
sub print_array {
$str = shift;
$prev= $_[0];
foreach (@_) {
$dummy_idx = $_ - $prev;
$prev= $_;
print "$str $dummy_idx\n";
}
}
$filename= "$ENV{MYSQLTEST_VARDIR}/log/mysqld.1.err";
open(F, '<', $filename) || die("Can't open file $filename: $!");
while (<F>) {
%a = @b = @c = () if /CURRENT_TEST/;
if (/Compacting away elements from dropped index \(\d+,(\d+)\): (\d+)/) {
$a{$1} += $2;
}
if (/Begin filtering dropped index \(\d+,(\d+)\)/) {
push @b, $1;
}
if (/Finished filtering dropped index \(\d+,(\d+)\)/) {
push @c, $1;
}
}
$prev= 0;
foreach (sort {$a <=> $b} keys %a){
if ($prev) {
$dummy_idx= $_ - $prev;
}else {
$dummy_idx= 0;
}
$prev= $_;
}
print_array("Begin filtering dropped index+", sort {$a <=> $b} @b);
print_array("Finished filtering dropped index+", sort {$a <=> $b} @c);
EOF
# Cleanup
drop table t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment