Commit e8ba6426 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-26274 fts_lock_table() attempts to release unreserved dict_sys.mutex

fts_lock_table(): Fix a regression that was introduced in
commit da65cb4d (MDEV-25936).
parent beb401b2
......@@ -1556,12 +1556,13 @@ static dberr_t fts_lock_table(trx_t *trx, const char *table_name)
if (!--n)
{
err= DB_LOCK_WAIT_TIMEOUT;
break;
goto fail;
}
std::this_thread::sleep_for(std::chrono::milliseconds(50));
dict_sys.mutex_lock();
}
dict_sys.mutex_unlock();
fail:
table->release();
return err;
}
......
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