tokutek/ft-engine#104 port to mariadb and remove unnecessary code