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
de483409
Commit
de483409
authored
Apr 04, 2008
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problem switching to the new file is file appeared
to be bigger then limit.
parent
42f970de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
storage/maria/ma_loghandler.c
storage/maria/ma_loghandler.c
+13
-2
No files found.
storage/maria/ma_loghandler.c
View file @
de483409
...
...
@@ -4451,8 +4451,19 @@ static my_bool translog_advance_pointer(int pages, uint16 last_page_data)
struct
st_translog_buffer
*
new_buffer
;
struct
st_translog_buffer
*
old_buffer
;
buffer_end_offset
=
TRANSLOG_WRITE_BUFFER
-
log_descriptor
.
bc
.
buffer
->
size
;
file_end_offset
=
(
log_descriptor
.
log_file_max_size
-
LSN_OFFSET
(
log_descriptor
.
horizon
));
if
(
likely
(
log_descriptor
.
log_file_max_size
>=
LSN_OFFSET
(
log_descriptor
.
horizon
)))
file_end_offset
=
(
log_descriptor
.
log_file_max_size
-
LSN_OFFSET
(
log_descriptor
.
horizon
));
else
{
/*
We already have written more then current file limit allow,
So we will finish this page and start new file
*/
file_end_offset
=
(
TRANSLOG_PAGE_SIZE
-
log_descriptor
.
bc
.
current_page_fill
);
}
DBUG_PRINT
(
"info"
,
(
"offset: %lu buffer_end_offs: %lu, "
"file_end_offs: %lu"
,
(
ulong
)
offset
,
(
ulong
)
buffer_end_offset
,
...
...
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