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
c6d7cd6d
Commit
c6d7cd6d
authored
Mar 24, 2010
by
mmakela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/innodb+: ibuf_get_volume_buffered_hash(): Use ulint instead of byte
for the hash bitmap array.
parent
665cb4c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ibuf/ibuf0ibuf.c
ibuf/ibuf0ibuf.c
+8
-8
No files found.
ibuf/ibuf0ibuf.c
View file @
c6d7cd6d
...
...
@@ -2651,8 +2651,8 @@ ibuf_get_volume_buffered_hash(
const
byte
*
data
,
/*!< in: start of user record data */
ulint
comp
,
/*!< in: 0=ROW_FORMAT=REDUNDANT,
nonzero=ROW_FORMAT=COMPACT */
byte
*
hash
,
/*!< in/out: hash array */
ulint
size
)
/*!< in:
size of hash array, in bytes
*/
ulint
*
hash
,
/*!< in/out: hash array */
ulint
size
)
/*!< in:
number of elements in hash array
*/
{
ulint
len
;
ulint
fold
;
...
...
@@ -2662,8 +2662,8 @@ ibuf_get_volume_buffered_hash(
FALSE
,
comp
);
fold
=
ut_fold_binary
(
data
,
len
);
hash
+=
(
fold
/
8
)
%
size
;
bitmask
=
1
<<
(
fold
%
8
);
hash
+=
(
fold
/
(
CHAR_BIT
*
sizeof
*
hash
)
)
%
size
;
bitmask
=
1
<<
(
fold
%
(
CHAR_BIT
*
sizeof
*
hash
)
);
if
(
*
hash
&
bitmask
)
{
...
...
@@ -2686,8 +2686,8 @@ ulint
ibuf_get_volume_buffered_count
(
/*===========================*/
const
rec_t
*
rec
,
/*!< in: insert buffer record */
byte
*
hash
,
/*!< in/out: hash array */
ulint
size
,
/*!< in:
size of hash array, in bytes
*/
ulint
*
hash
,
/*!< in/out: hash array */
ulint
size
,
/*!< in:
number of elements in hash array
*/
lint
*
n_recs
)
/*!< in/out: estimated number of records
on the page that rec points to */
{
...
...
@@ -2822,7 +2822,7 @@ ibuf_get_volume_buffered(
page_t
*
prev_page
;
ulint
next_page_no
;
page_t
*
next_page
;
byte
hash_bitmap
[
128
];
/* bitmap of buffered record
s */
ulint
hash_bitmap
[
128
/
sizeof
(
ulint
)];
/* bitmap of buffered rec
s */
ut_a
(
trx_sys_multiple_tablespace_format
);
...
...
@@ -2858,7 +2858,7 @@ ibuf_get_volume_buffered(
}
volume
+=
ibuf_get_volume_buffered_count
(
rec
,
hash_bitmap
,
sizeof
hash_bitmap
,
n_recs
);
rec
,
hash_bitmap
,
UT_ARR_SIZE
(
hash_bitmap
)
,
n_recs
);
rec
=
page_rec_get_prev
(
rec
);
}
...
...
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