Skip to content
Permalink
Browse files
Fix a WITH_WSREP=OFF warning
  • Loading branch information
dr-m committed Mar 29, 2018
1 parent 4cad423 commit 87ee856
Showing 1 changed file with 5 additions and 2 deletions.
@@ -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

0 comments on commit 87ee856

Please sign in to comment.