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