Commit 6a44d90b authored by marko's avatar marko

branches/zip: fseg_free(): Remove this unused function.

parent f6eb4a4a
......@@ -3566,45 +3566,6 @@ fseg_free_step_not_header(
return(FALSE);
}
/*******************************************************************//**
Frees a segment. The freeing is performed in several mini-transactions,
so that there is no danger of bufferfixing too many buffer pages. */
UNIV_INTERN
void
fseg_free(
/*======*/
ulint space, /*!< in: space id */
ulint zip_size,/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
ulint page_no,/*!< in: page number where the segment header is
placed */
ulint offset) /*!< in: byte offset of the segment header on that
page */
{
mtr_t mtr;
ibool finished;
fseg_header_t* header;
fil_addr_t addr;
addr.page = page_no;
addr.boffset = offset;
for (;;) {
mtr_start(&mtr);
header = fut_get_ptr(space, zip_size, addr, RW_X_LATCH, &mtr);
finished = fseg_free_step(header, &mtr);
mtr_commit(&mtr);
if (finished) {
return;
}
}
}
/**********************************************************************//**
Returns the first extent descriptor for a segment. We think of the extent
lists of the segment catenated in the order FSEG_FULL -> FSEG_NOT_FULL
......
......@@ -269,20 +269,6 @@ fseg_free_page(
ulint space, /*!< in: space id */
ulint page, /*!< in: page offset */
mtr_t* mtr); /*!< in: mtr handle */
/*******************************************************************//**
Frees a segment. The freeing is performed in several mini-transactions,
so that there is no danger of bufferfixing too many buffer pages. */
UNIV_INTERN
void
fseg_free(
/*======*/
ulint space, /*!< in: space id */
ulint zip_size,/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
ulint page_no,/*!< in: page number where the segment header is
placed */
ulint offset);/*!< in: byte offset of the segment header on that
page */
/**********************************************************************//**
Frees part of a segment. This function can be used to free a segment
by repeatedly calling this function in different mini-transactions.
......
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