Skip to content

Commit 9d46bd8

Browse files
committed
flst_add_to_empty(): read len only in debug build
1 parent aaf7111 commit 9d46bd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/innobase/fut/fut0lst.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ flst_add_to_empty(
4040
{
4141
ulint space;
4242
fil_addr_t node_addr;
43-
ulint len;
43+
ulint len = 0;
4444

4545
ut_ad(mtr && base && node);
4646
ut_ad(base != node);
@@ -50,7 +50,7 @@ flst_add_to_empty(
5050
ut_ad(mtr_memo_contains_page_flagged(mtr, node,
5151
MTR_MEMO_PAGE_X_FIX
5252
| MTR_MEMO_PAGE_SX_FIX));
53-
len = flst_get_len(base);
53+
ut_d(len = flst_get_len(base));
5454
ut_a(len == 0);
5555

5656
buf_ptr_get_fsp_addr(node, &space, &node_addr);

0 commit comments

Comments
 (0)