[t:3048], fix 5.5 compilation issue

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25759 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Zardosht Kasheff 2010-11-19 18:02:38 +00:00 committed by Yoni Fogel
parent 7450374e5c
commit 97aed40d06

View file

@ -5512,8 +5512,7 @@ THR_LOCK_DATA **ha_tokudb::store_lock(THD * thd, THR_LOCK_DATA ** to, enum thr_l
if (tokudb_debug & TOKUDB_DEBUG_LOCK) {
TOKUDB_TRACE("%s lock_type=%d cmd=%d\n", __FUNCTION__, lock_type, thd_sql_command(thd));
}
if (lock_type == TL_WRITE_ALLOW_READ &&
get_create_index_online(thd) &&
if (get_create_index_online(thd) &&
thd_sql_command(thd)== SQLCOM_CREATE_INDEX
)
{