Commit 05cd10b7 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-29603 fixup: GCC -Wunused-but-set-variable

parent 604e8449
......@@ -894,14 +894,14 @@ bool mtr_t::have_x_latch(const buf_block_t &block) const
if (!m_memo)
return false;
const mtr_memo_slot_t *found= nullptr;
ut_d(const mtr_memo_slot_t *found= nullptr);
for (const mtr_memo_slot_t &slot : *m_memo)
{
if (slot.object != &block)
continue;
found= &slot;
ut_d(found= &slot);
if (!(slot.type & MTR_MEMO_PAGE_X_FIX))
continue;
......
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