Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a300e546
Commit
a300e546
authored
Jun 30, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: fseg_free(): Remove this unused function.
parent
6ca41a14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
53 deletions
+0
-53
fsp/fsp0fsp.c
fsp/fsp0fsp.c
+0
-39
include/fsp0fsp.h
include/fsp0fsp.h
+0
-14
No files found.
fsp/fsp0fsp.c
View file @
a300e546
...
...
@@ -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
...
...
include/fsp0fsp.h
View file @
a300e546
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment