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
2b3423c4
Commit
2b3423c4
authored
Jan 17, 2023
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.3 into 10.4
parents
3e8b6a79
489b5569
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
libmariadb
libmariadb
+1
-1
storage/innobase/buf/buf0flu.cc
storage/innobase/buf/buf0flu.cc
+11
-4
No files found.
libmariadb
@
d204e831
Subproject commit
7fdb3eab66384a355475704332d11cc1ab82499a
Subproject commit
d204e83104222844251b221e9be7eb3dd9f8d63d
storage/innobase/buf/buf0flu.cc
View file @
2b3423c4
...
@@ -3297,20 +3297,27 @@ DECLARE_THREAD(buf_flush_page_cleaner_coordinator)(void*)
...
@@ -3297,20 +3297,27 @@ DECLARE_THREAD(buf_flush_page_cleaner_coordinator)(void*)
bool
success
;
bool
success
;
do
{
do
{
/* In case an asynchronous read request was posted by
any thread (other than something invoking
ibuf_merge_in_background()), it is possible that the
change buffer will be merged to the page once the read
completes. To avoid race conditions and corruption due
to that, we will loop here until there are no pending
page read operations. */
success
=
!
buf_get_n_pending_read_ios
();
pc_request
(
ULINT_MAX
,
LSN_MAX
);
pc_request
(
ULINT_MAX
,
LSN_MAX
);
while
(
pc_flush_slot
()
>
0
)
{}
while
(
pc_flush_slot
()
>
0
)
{}
ulint
n_flushed_lru
=
0
;
ulint
n_flushed_lru
=
0
;
ulint
n_flushed_list
=
0
;
ulint
n_flushed_list
=
0
;
success
=
pc_wait_finished
(
&
n_flushed_lru
,
&
n_flushed_list
);
success
=
pc_wait_finished
(
&
n_flushed_lru
,
&
n_flushed_list
)
&&
success
&&
!
n_flushed_lru
&&
!
n_flushed_list
;
n_flushed
=
n_flushed_lru
+
n_flushed_list
;
buf_flush_wait_batch_end
(
NULL
,
BUF_FLUSH_LIST
);
buf_flush_wait_batch_end
(
NULL
,
BUF_FLUSH_LIST
);
buf_flush_wait_LRU_batch_end
();
buf_flush_wait_LRU_batch_end
();
}
while
(
!
success
||
n_flushed
>
0
);
}
while
(
!
success
);
/* Some sanity checks */
/* Some sanity checks */
ut_a
(
srv_get_active_thread_type
()
==
SRV_NONE
);
ut_a
(
srv_get_active_thread_type
()
==
SRV_NONE
);
...
...
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