+ if (trx_mutex_own(lock->trx)) + trx_mutex_exit(lock->trx);
doesnt work because it is not available in debug build, need to move it above.
+ if (trx_mutex_ own(lock- >trx)) exit(lock- >trx);
+ trx_mutex_
doesnt work because it is not available in debug build, need to move it above.