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
8aa82356
Commit
8aa82356
authored
Dec 04, 2001
by
heikki@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buf0buf.ic, mtr0log.ic:
Add diagnostic code to catch possible space id or page no errors in the log
parent
eb883b30
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
innobase/include/buf0buf.ic
innobase/include/buf0buf.ic
+8
-2
innobase/include/mtr0log.ic
innobase/include/mtr0log.ic
+7
-0
No files found.
innobase/include/buf0buf.ic
View file @
8aa82356
...
@@ -211,6 +211,9 @@ buf_block_align(
...
@@ -211,6 +211,9 @@ buf_block_align(
block = buf_pool_get_nth_block(buf_pool, (ptr - frame_zero)
block = buf_pool_get_nth_block(buf_pool, (ptr - frame_zero)
>> UNIV_PAGE_SIZE_SHIFT);
>> UNIV_PAGE_SIZE_SHIFT);
ut_a(block >= buf_pool->blocks);
ut_a(block < buf_pool->blocks + buf_pool->max_size);
return(block);
return(block);
}
}
...
@@ -235,6 +238,9 @@ buf_block_align_low(
...
@@ -235,6 +238,9 @@ buf_block_align_low(
block = buf_pool_get_nth_block(buf_pool, (ptr - frame_zero)
block = buf_pool_get_nth_block(buf_pool, (ptr - frame_zero)
>> UNIV_PAGE_SIZE_SHIFT);
>> UNIV_PAGE_SIZE_SHIFT);
ut_a(block >= buf_pool->blocks);
ut_a(block < buf_pool->blocks + buf_pool->max_size);
return(block);
return(block);
}
}
...
@@ -253,9 +259,9 @@ buf_frame_align(
...
@@ -253,9 +259,9 @@ buf_frame_align(
frame = ut_align_down(ptr, UNIV_PAGE_SIZE);
frame = ut_align_down(ptr, UNIV_PAGE_SIZE);
ut_a
d
((ulint)frame
ut_a((ulint)frame
>= (ulint)(buf_pool_get_nth_block(buf_pool, 0)->frame));
>= (ulint)(buf_pool_get_nth_block(buf_pool, 0)->frame));
ut_a
d
((ulint)frame <= (ulint)(buf_pool_get_nth_block(buf_pool,
ut_a((ulint)frame <= (ulint)(buf_pool_get_nth_block(buf_pool,
buf_pool->max_size - 1)->frame));
buf_pool->max_size - 1)->frame));
return(frame);
return(frame);
}
}
...
...
innobase/include/mtr0log.ic
View file @
8aa82356
...
@@ -163,6 +163,13 @@ mlog_write_initial_log_record_fast(
...
@@ -163,6 +163,13 @@ mlog_write_initial_log_record_fast(
space = buf_block_get_space(block);
space = buf_block_get_space(block);
offset = buf_block_get_page_no(block);
offset = buf_block_get_page_no(block);
if (space != 0 || offset > 0x8FFFFFFF) {
fprintf(stderr,
"InnoDB: error: buffer page pointer %lx has nonsensical space id %lu\n"
"InnoDB: or page no %lu\n", (ulint)ptr, space, offset);
ut_a(0);
}
mach_write_to_1(log_ptr, type);
mach_write_to_1(log_ptr, type);
log_ptr++;
log_ptr++;
log_ptr += mach_write_compressed(log_ptr, space);
log_ptr += mach_write_compressed(log_ptr, space);
...
...
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