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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6a44d90b
Commit
6a44d90b
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
f6eb4a4a
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 @
6a44d90b
...
...
@@ -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 @
6a44d90b
...
...
@@ -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