Commit 87ee8563 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix a WITH_WSREP=OFF warning

parent 4cad4239
......@@ -1983,8 +1983,11 @@ lock_rec_lock(
/* Do nothing if the trx already has a strong enough lock on rec */
if (!lock_rec_has_expl(mode, block, heap_no, trx))
{
if (lock_t *c_lock= lock_rec_other_has_conflicting(mode, block,
heap_no, trx))
if (
#ifdef WITH_WSREP
lock_t *c_lock=
#endif
lock_rec_other_has_conflicting(mode, block, heap_no, trx))
{
/*
If another transaction has a non-gap conflicting
......
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