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
1d833167
Commit
1d833167
authored
Sep 27, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug #13367, post-review changes
parent
d06efbdd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
22 deletions
+3
-22
innobase/buf/buf0flu.c
innobase/buf/buf0flu.c
+2
-2
innobase/srv/srv0start.c
innobase/srv/srv0start.c
+1
-1
innobase/trx/trx0sys.c
innobase/trx/trx0sys.c
+0
-19
No files found.
innobase/buf/buf0flu.c
View file @
1d833167
...
...
@@ -503,11 +503,11 @@ buf_flush_write_block_low(
#endif
buf_flush_init_for_writing
(
block
->
frame
,
block
->
newest_modification
,
block
->
space
,
block
->
offset
);
if
(
!
trx_doublewrite
)
{
if
(
!
srv_use_doublewrite_buf
||
!
trx_doublewrite
)
{
fil_io
(
OS_FILE_WRITE
|
OS_AIO_SIMULATED_WAKE_LATER
,
FALSE
,
block
->
space
,
block
->
offset
,
0
,
UNIV_PAGE_SIZE
,
(
void
*
)
block
->
frame
,
(
void
*
)
block
);
}
else
if
(
srv_use_doublewrite_buf
)
{
}
else
{
buf_flush_post_to_doublewrite_buf
(
block
);
}
}
...
...
innobase/srv/srv0start.c
View file @
1d833167
...
...
@@ -1540,7 +1540,7 @@ NetWare. */
#endif
sync_order_checks_on
=
TRUE
;
if
(
srv_use_doublewrite_buf
&&
trx_doublewrite
==
NULL
)
{
if
(
trx_doublewrite
==
NULL
)
{
/* Create the doublewrite buffer to a new tablespace */
trx_sys_create_doublewrite_buf
();
...
...
innobase/trx/trx0sys.c
View file @
1d833167
...
...
@@ -125,22 +125,6 @@ trx_doublewrite_init(
*
sizeof
(
void
*
));
}
/********************************************************************
Frees the doublewrite buffer. */
static
void
trx_doublewrite_free
(
void
)
/*======================*/
{
mutex_free
(
&
(
trx_doublewrite
->
mutex
));
mem_free
(
trx_doublewrite
->
buf_block_arr
);
ut_free
(
trx_doublewrite
->
write_buf_unaligned
);
mem_free
(
trx_doublewrite
);
trx_doublewrite
=
NULL
;
}
/********************************************************************
Marks the trx sys header when we have successfully upgraded to the >= 4.1.x
multiple tablespace format. */
...
...
@@ -529,9 +513,6 @@ trx_sys_doublewrite_init_or_restore_pages(
fil_flush_file_spaces
(
FIL_TABLESPACE
);
if
(
!
srv_use_doublewrite_buf
)
trx_doublewrite_free
();
leave_func:
ut_free
(
unaligned_read_buf
);
}
...
...
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