mysql -S$mysqlsocket-u$mysqluser-D$dbname-e"set session tokudb_load_save_space=$tokudb_load_save_space; load data infile '$tpchdir/data/tpch${SCALE}G/$tblname.tbl' into table $tblname fields terminated by '|'">>$runfile 2>&1
echo`date` add clustering index $tblname>>$runfile
start=$(date +%s)
mysql -S$mysqlsocket-u$mysqluser-D$dbname-e"set session tokudb_create_index_online=0;create clustering index i_shipdate on lineitem (l_shipdate)">>$runfile 2>&1
exitcode=$?
let loadtime=$(date +%s)-$start
echo`date` add clustering index $tblname$exitcodeloadtime=$loadtime>>$runfile
if[$exitcode-ne 0 ];then testresult="FAIL";fi
done
fi
# check the tables
if[$check!= 0 -a$testresult="PASS"];then
for tblname in$TABLES;do
echo`date` check table $tblname>>$runfile
start=$(date +%s)
mysql -S$mysqlsocket-u$mysqluser-D$dbname-e"check table $tblname">>$runfile 2>&1