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
1367c5e5
Commit
1367c5e5
authored
Oct 12, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: ibuf_index_page_calc_free(): Add const qualifiers.
parent
8bafadab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
include/ibuf0ibuf.ic
include/ibuf0ibuf.ic
+10
-7
No files found.
include/ibuf0ibuf.ic
View file @
1367c5e5
...
...
@@ -198,10 +198,10 @@ UNIV_INLINE
ulint
ibuf_index_page_calc_free(
/*======================*/
/* out: value for ibuf bitmap bits */
ulint zip_size,/* in: compressed page size in bytes;
0 for uncompressed pages */
buf_block_t* block) /* in: buffer block */
/* out: value for ibuf bitmap bits */
ulint
zip_size,/* in: compressed page size in bytes;
0 for uncompressed pages */
const
buf_block_t* block) /* in: buffer block */
{
ulint max_ins_size;
...
...
@@ -213,9 +213,12 @@ ibuf_index_page_calc_free(
if (!zip_size) {
return(ibuf_index_page_calc_free_bits(0, max_ins_size));
} else {
page_zip_des_t* page_zip = buf_block_get_page_zip(block);
lint zip_max_ins = page_zip_max_ins_size(
page_zip, FALSE/* not clustered */);
const page_zip_des_t* page_zip;
lint zip_max_ins;
page_zip = buf_block_get_page_zip(block);
zip_max_ins = page_zip_max_ins_size(page_zip,
FALSE/* not clustered */);
if (UNIV_UNLIKELY(zip_max_ins < 0)) {
max_ins_size = 0;
...
...
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