Commit 6de8f79b authored by Eugene Kosov's avatar Eugene Kosov

remove unneeded variable

parent de4c9f46
......@@ -40,7 +40,6 @@ flst_add_to_empty(
{
ulint space;
fil_addr_t node_addr;
ulint len = 0;
ut_ad(mtr && base && node);
ut_ad(base != node);
......@@ -50,8 +49,7 @@ flst_add_to_empty(
ut_ad(mtr_memo_contains_page_flagged(mtr, node,
MTR_MEMO_PAGE_X_FIX
| MTR_MEMO_PAGE_SX_FIX));
ut_d(len = flst_get_len(base));
ut_a(len == 0);
ut_ad(!flst_get_len(base));
buf_ptr_get_fsp_addr(node, &space, &node_addr);
......@@ -64,7 +62,7 @@ flst_add_to_empty(
flst_write_addr(node + FLST_NEXT, fil_addr_null, mtr);
/* Update len of base node */
mlog_write_ulint(base + FLST_LEN, len + 1, MLOG_4BYTES, mtr);
mlog_write_ulint(base + FLST_LEN, 1, MLOG_4BYTES, mtr);
}
/********************************************************************//**
......
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