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) ...@@ -1556,12 +1556,13 @@ static dberr_t fts_lock_table(trx_t *trx, const char *table_name)
if (!--n) if (!--n)
{ {
err= DB_LOCK_WAIT_TIMEOUT; err= DB_LOCK_WAIT_TIMEOUT;
break; goto fail;
} }
std::this_thread::sleep_for(std::chrono::milliseconds(50)); std::this_thread::sleep_for(std::chrono::milliseconds(50));
dict_sys.mutex_lock(); dict_sys.mutex_lock();
} }
dict_sys.mutex_unlock(); dict_sys.mutex_unlock();
fail:
table->release(); table->release();
return err; 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