Skip to content

Commit

Permalink
flst_add_to_empty(): read len only in debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs committed Feb 16, 2018
1 parent aaf7111 commit 9d46bd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/innobase/fut/fut0lst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ flst_add_to_empty(
{
ulint space;
fil_addr_t node_addr;
ulint len;
ulint len = 0;

ut_ad(mtr && base && node);
ut_ad(base != node);
Expand All @@ -50,7 +50,7 @@ flst_add_to_empty(
ut_ad(mtr_memo_contains_page_flagged(mtr, node,
MTR_MEMO_PAGE_X_FIX
| MTR_MEMO_PAGE_SX_FIX));
len = flst_get_len(base);
ut_d(len = flst_get_len(base));
ut_a(len == 0);

buf_ptr_get_fsp_addr(node, &space, &node_addr);
Expand Down

0 comments on commit 9d46bd8

Please sign in to comment.