Skip to content
Permalink
Browse files
MDEV-26274 fts_lock_table() attempts to release unreserved dict_sys.m…
…utex

fts_lock_table(): Fix a regression that was introduced in
commit da65cb4 (MDEV-25936).
  • Loading branch information
dr-m committed Jul 29, 2021
1 parent beb401b commit e8ba642
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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;
}

0 comments on commit e8ba642

Please sign in to comment.