After-merge fix

Merge a part of commit 25af2a183b.
This was forgotten in the
merge commit e41eb044f1.
This commit is contained in:
Marko Mäkelä 2019-08-29 18:22:41 +03:00
parent e50b2bdbcf
commit d4246e25e5

View file

@ -644,11 +644,8 @@ public:
{
mutex_enter(&element->mutex);
lf_hash_search_unpin(pins);
trx= element->trx;
if (!trx);
else if (UNIV_UNLIKELY(trx_id != trx->id))
trx= NULL;
else {
if ((trx= element->trx)) {
DBUG_ASSERT(trx_id == trx->id);
if (do_ref_count)
trx->reference();
ut_d(validate_element(trx));