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
2dc343f6
Commit
2dc343f6
authored
Mar 10, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Remove unused parameter "index" of page_mem_free().
parent
8848914b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
include/page0page.h
include/page0page.h
+0
-1
include/page0page.ic
include/page0page.ic
+1
-2
page/page0cur.c
page/page0cur.c
+1
-1
No files found.
include/page0page.h
View file @
2dc343f6
...
@@ -604,7 +604,6 @@ page_mem_free(
...
@@ -604,7 +604,6 @@ page_mem_free(
page_zip_des_t
*
page_zip
,
/* in/out: compressed page with at least
page_zip_des_t
*
page_zip
,
/* in/out: compressed page with at least
6 bytes available, or NULL */
6 bytes available, or NULL */
rec_t
*
rec
,
/* in: pointer to the (origin of) record */
rec_t
*
rec
,
/* in: pointer to the (origin of) record */
dict_index_t
*
index
,
/* in: record descriptor */
const
ulint
*
offsets
);
/* in: array returned by rec_get_offsets() */
const
ulint
*
offsets
);
/* in: array returned by rec_get_offsets() */
/**************************************************************
/**************************************************************
The index page creation function. */
The index page creation function. */
...
...
include/page0page.ic
View file @
2dc343f6
...
@@ -909,13 +909,12 @@ page_mem_free(
...
@@ -909,13 +909,12 @@ page_mem_free(
page_zip_des_t* page_zip,/* in/out: compressed page with at least
page_zip_des_t* page_zip,/* in/out: compressed page with at least
6 bytes available, or NULL */
6 bytes available, or NULL */
rec_t* rec, /* in: pointer to the (origin of) record */
rec_t* rec, /* in: pointer to the (origin of) record */
dict_index_t* index, /* in: record descriptor */
const ulint* offsets)/* in: array returned by rec_get_offsets() */
const ulint* offsets)/* in: array returned by rec_get_offsets() */
{
{
rec_t* free;
rec_t* free;
ulint garbage;
ulint garbage;
ut_ad(rec_offs_validate(rec,
index
, offsets));
ut_ad(rec_offs_validate(rec,
NULL
, offsets));
ut_ad(!rec_offs_comp(offsets) == !page_rec_is_comp(rec));
ut_ad(!rec_offs_comp(offsets) == !page_rec_is_comp(rec));
free = page_header_get_ptr(page, PAGE_FREE);
free = page_header_get_ptr(page, PAGE_FREE);
...
...
page/page0cur.c
View file @
2dc343f6
...
@@ -1534,7 +1534,7 @@ page_cur_delete_rec(
...
@@ -1534,7 +1534,7 @@ page_cur_delete_rec(
page_dir_slot_set_n_owned
(
cur_dir_slot
,
page_zip
,
cur_n_owned
-
1
);
page_dir_slot_set_n_owned
(
cur_dir_slot
,
page_zip
,
cur_n_owned
-
1
);
/* 6. Free the memory occupied by the record */
/* 6. Free the memory occupied by the record */
page_mem_free
(
page
,
page_zip
,
current_rec
,
index
,
offsets
);
page_mem_free
(
page
,
page_zip
,
current_rec
,
offsets
);
page_header_set_field
(
page
,
page_zip
,
PAGE_N_RECS
,
page_header_set_field
(
page
,
page_zip
,
PAGE_N_RECS
,
(
ulint
)(
page_get_n_recs
(
page
)
-
1
));
(
ulint
)(
page_get_n_recs
(
page
)
-
1
));
if
(
UNIV_LIKELY_NULL
(
page_zip
))
{
if
(
UNIV_LIKELY_NULL
(
page_zip
))
{
...
...
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