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
fc2c6729
Commit
fc2c6729
authored
Oct 31, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Remove buf_pool->frame_zero and buf_pool->high_end.
parent
e5eb6187
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
46 deletions
+4
-46
buf/buf0buf.c
buf/buf0buf.c
+2
-5
include/buf0buf.h
include/buf0buf.h
+0
-5
mtr/mtr0log.c
mtr/mtr0log.c
+0
-30
row/row0sel.c
row/row0sel.c
+2
-6
No files found.
buf/buf0buf.c
View file @
fc2c6729
...
...
@@ -665,9 +665,6 @@ buf_pool_init(
frame
=
ut_align
(
buf_pool
->
frame_mem
,
UNIV_PAGE_SIZE
);
buf_pool
->
frame_zero
=
frame
;
buf_pool
->
high_end
=
frame
+
UNIV_PAGE_SIZE
*
n_frames
;
/* Init block structs and assign frames for them. Then we
assign the frames to the first blocks (we already mapped the
memory above). */
...
...
@@ -676,9 +673,9 @@ buf_pool_init(
block
=
buf_pool_get_nth_block
(
buf_pool
,
i
);
frame
=
buf_pool
->
frame_zero
+
i
*
UNIV_PAGE_SIZE
;
buf_block_init
(
block
,
frame
);
frame
+=
UNIV_PAGE_SIZE
;
}
buf_pool
->
page_hash
=
hash_create
(
2
*
curr_size
);
...
...
include/buf0buf.h
View file @
fc2c6729
...
...
@@ -830,11 +830,6 @@ struct buf_pool_struct{
read-write lock in them */
byte
*
frame_mem
;
/* pointer to the memory area which
was allocated for the frames */
byte
*
frame_zero
;
/* pointer to the first buffer frame:
this may differ from frame_mem, because
this is aligned by the frame size */
byte
*
high_end
;
/* pointer to the end of the buffer
frames */
buf_block_t
*
blocks
;
/* array of buffer control blocks */
ulint
curr_size
;
/* current pool size in pages */
hash_table_t
*
page_hash
;
/* hash table of the file pages */
...
...
mtr/mtr0log.c
View file @
fc2c6729
...
...
@@ -57,13 +57,6 @@ mlog_write_initial_log_record(
ut_ad
(
type
<=
MLOG_BIGGEST_TYPE
);
ut_ad
(
type
>
MLOG_8BYTES
);
if
(
ptr
<
buf_pool
->
frame_zero
||
ptr
>=
buf_pool
->
high_end
)
{
fprintf
(
stderr
,
"InnoDB: Error: trying to write to"
" a stray memory location %p
\n
"
,
(
void
*
)
ptr
);
ut_error
;
}
log_ptr
=
mlog_open
(
mtr
,
11
);
/* If no logging is requested, we may return now */
...
...
@@ -240,14 +233,6 @@ mlog_write_ulint(
{
byte
*
log_ptr
;
if
(
UNIV_UNLIKELY
(
ptr
<
buf_pool
->
frame_zero
)
||
UNIV_UNLIKELY
(
ptr
>=
buf_pool
->
high_end
))
{
fprintf
(
stderr
,
"InnoDB: Error: trying to write to"
" a stray memory location %p
\n
"
,
(
void
*
)
ptr
);
ut_error
;
}
switch
(
type
)
{
case
MLOG_1BYTE
:
mach_write_to_1
(
ptr
,
val
);
...
...
@@ -293,14 +278,6 @@ mlog_write_dulint(
{
byte
*
log_ptr
;
if
(
UNIV_UNLIKELY
(
ptr
<
buf_pool
->
frame_zero
)
||
UNIV_UNLIKELY
(
ptr
>=
buf_pool
->
high_end
))
{
fprintf
(
stderr
,
"InnoDB: Error: trying to write to"
" a stray memory location %p
\n
"
,
(
void
*
)
ptr
);
ut_error
;
}
ut_ad
(
ptr
&&
mtr
);
mach_write_to_8
(
ptr
,
val
);
...
...
@@ -336,13 +313,6 @@ mlog_write_string(
ulint
len
,
/* in: string length */
mtr_t
*
mtr
)
/* in: mini-transaction handle */
{
if
(
UNIV_UNLIKELY
(
ptr
<
buf_pool
->
frame_zero
)
||
UNIV_UNLIKELY
(
ptr
>=
buf_pool
->
high_end
))
{
fprintf
(
stderr
,
"InnoDB: Error: trying to write to"
" a stray memory location %p
\n
"
,
(
void
*
)
ptr
);
ut_error
;
}
ut_ad
(
ptr
&&
mtr
);
ut_a
(
len
<
UNIV_PAGE_SIZE
);
...
...
row/row0sel.c
View file @
fc2c6729
...
...
@@ -3795,13 +3795,9 @@ row_search_for_mysql(
ut_print_timestamp
(
stderr
);
buf_page_print
(
page_align
(
rec
),
0
);
fprintf
(
stderr
,
"
\n
InnoDB: rec address %p, first"
" buffer frame %p
\n
"
"InnoDB: buffer pool high end %p,"
"
\n
InnoDB: rec address %p,"
" buf block fix count %lu
\n
"
,
(
void
*
)
rec
,
(
void
*
)
buf_pool
->
frame_zero
,
(
void
*
)
buf_pool
->
high_end
,
(
ulong
)
(
void
*
)
rec
,
(
ulong
)
btr_cur_get_block
(
btr_pcur_get_btr_cur
(
pcur
))
->
buf_fix_count
);
fprintf
(
stderr
,
...
...
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