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
dcd4b6f5
Commit
dcd4b6f5
authored
Oct 08, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments fixed and added.
parent
212313de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
storage/maria/ma_loghandler.c
storage/maria/ma_loghandler.c
+2
-1
No files found.
storage/maria/ma_loghandler.c
View file @
dcd4b6f5
...
@@ -104,7 +104,7 @@ struct st_buffer_cursor
...
@@ -104,7 +104,7 @@ struct st_buffer_cursor
struct
st_translog_buffer
*
buffer
;
struct
st_translog_buffer
*
buffer
;
/* current page fill */
/* current page fill */
uint16
current_page_fill
;
uint16
current_page_fill
;
/* how many times we finish this page to write it */
/* how many times we finish this page to write it
(for sector protection)
*/
uint16
write_counter
;
uint16
write_counter
;
/* previous write offset */
/* previous write offset */
uint16
previous_offset
;
uint16
previous_offset
;
...
@@ -6142,6 +6142,7 @@ static void translog_force_current_buffer_to_finish()
...
@@ -6142,6 +6142,7 @@ static void translog_force_current_buffer_to_finish()
write_counter
=
log_descriptor
.
bc
.
write_counter
;
write_counter
=
log_descriptor
.
bc
.
write_counter
;
previous_offset
=
log_descriptor
.
bc
.
previous_offset
;
previous_offset
=
log_descriptor
.
bc
.
previous_offset
;
translog_start_buffer
(
new_buffer
,
&
log_descriptor
.
bc
,
new_buffer_no
);
translog_start_buffer
(
new_buffer
,
&
log_descriptor
.
bc
,
new_buffer_no
);
/* Fix buffer offset (which was incorrectly set to horizon) */
log_descriptor
.
bc
.
buffer
->
offset
=
new_buff_beginning
;
log_descriptor
.
bc
.
buffer
->
offset
=
new_buff_beginning
;
log_descriptor
.
bc
.
write_counter
=
write_counter
;
log_descriptor
.
bc
.
write_counter
=
write_counter
;
log_descriptor
.
bc
.
previous_offset
=
previous_offset
;
log_descriptor
.
bc
.
previous_offset
=
previous_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