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
8ddf0edc
Commit
8ddf0edc
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
f532dd11
561b6b42
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 @
8ddf0edc
...
...
@@ -104,7 +104,7 @@ struct st_buffer_cursor
struct
st_translog_buffer
*
buffer
;
/* 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
;
/* previous write offset */
uint16
previous_offset
;
...
...
@@ -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
translog_force_current_buffer_to_finish(
)
@todo Do not copy old page content if all page protections are switched off
(because we do not need calculate something or change old parts of the page
)
*/
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
;
previous_offset
=
log_descriptor
.
bc
.
previous_offset
;
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
.
write_counter
=
write_counter
;
log_descriptor
.
bc
.
previous_offset
=
previous_offset
;
...
...
storage/maria/ma_pagecache.c
View file @
8ddf0edc
...
...
@@ -184,7 +184,6 @@ static const char *page_cache_page_type_str[]=
static
const
char
*
page_cache_page_write_mode_str
[]
=
{
"DELAY"
,
"NOW"
,
"DONE"
};
...
...
@@ -2929,7 +2928,14 @@ uchar *pagecache_valid_read(PAGECACHE *pagecache,
status
=
block
->
status
;
if
(
!
buff
)
{
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
{
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