diff options
Diffstat (limited to 'storage/innobase/btr/btr0bulk.cc')
-rw-r--r-- | storage/innobase/btr/btr0bulk.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/innobase/btr/btr0bulk.cc b/storage/innobase/btr/btr0bulk.cc index 9004064a1b9..83285e9bb7f 100644 --- a/storage/innobase/btr/btr0bulk.cc +++ b/storage/innobase/btr/btr0bulk.cc @@ -856,13 +856,13 @@ PageBulk::latch() ut_ad(m_block->page.buf_fix_count()); - /* In case the block is S-latched by page_cleaner. */ + /* In case the block is U-latched by page_cleaner. */ if (!buf_page_optimistic_get(RW_X_LATCH, m_block, m_modify_clock, __FILE__, __LINE__, &m_mtr)) { + /* FIXME: avoid another lookup */ m_block = buf_page_get_gen(page_id_t(m_index->table->space_id, m_page_no), - 0, RW_X_LATCH, - m_block, BUF_GET_IF_IN_POOL, + 0, RW_X_LATCH, BUF_GET_IF_IN_POOL, __FILE__, __LINE__, &m_mtr, &m_err); if (m_err != DB_SUCCESS) { |