Skip to content
Permalink
Browse files
MDEV-29603 fixup: GCC -Wunused-but-set-variable
  • Loading branch information
dr-m committed Nov 24, 2022
1 parent 604e844 commit 05cd10b
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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;

0 comments on commit 05cd10b

Please sign in to comment.