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
5cd55487
Commit
5cd55487
authored
Oct 08, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-maria
into janus.mylan:/usr/home/serg/Abk/mysql-maria1
parents
ceadd596
dcd4b6f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
storage/maria/ma_loghandler.c
storage/maria/ma_loghandler.c
+5
-4
storage/maria/ma_pagecache.c
storage/maria/ma_pagecache.c
+7
-1
No files found.
storage/maria/ma_loghandler.c
View file @
5cd55487
...
@@ -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
;
...
@@ -6066,10 +6066,10 @@ translog_size_t translog_read_record(LSN lsn,
...
@@ -6066,10 +6066,10 @@ translog_size_t translog_read_record(LSN lsn,
/*
/*
Force skipping to the next buffer
@brief
Force skipping to the next buffer
SYNOPSIS
@todo Do not copy old page content if all page protections are switched off
translog_force_current_buffer_to_finish(
)
(because we do not need calculate something or change old parts of the page
)
*/
*/
static
void
translog_force_current_buffer_to_finish
()
static
void
translog_force_current_buffer_to_finish
()
...
@@ -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
;
...
...
storage/maria/ma_pagecache.c
View file @
5cd55487
...
@@ -184,7 +184,6 @@ static const char *page_cache_page_type_str[]=
...
@@ -184,7 +184,6 @@ static const char *page_cache_page_type_str[]=
static
const
char
*
page_cache_page_write_mode_str
[]
=
static
const
char
*
page_cache_page_write_mode_str
[]
=
{
{
"DELAY"
,
"DELAY"
,
"NOW"
,
"DONE"
"DONE"
};
};
...
@@ -2929,7 +2928,14 @@ restart:
...
@@ -2929,7 +2928,14 @@ restart:
status
=
block
->
status
;
status
=
block
->
status
;
if
(
!
buff
)
if
(
!
buff
)
{
buff
=
block
->
buffer
;
buff
=
block
->
buffer
;
/* if we lock for write we must link the block to changed blocks */
if
((
lock
==
PAGECACHE_LOCK_WRITE
||
lock
==
PAGECACHE_LOCK_LEFT_WRITELOCKED
)
&&
!
(
block
->
status
&
PCBLOCK_CHANGED
))
link_to_changed_list
(
pagecache
,
block
);
}
else
else
{
{
if
(
!
(
status
&
PCBLOCK_ERROR
))
if
(
!
(
status
&
PCBLOCK_ERROR
))
...
...
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