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
f8a735d6
Commit
f8a735d6
authored
Aug 09, 2024
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.11' into mariadb-10.11.9
parents
0e8fb977
8da47741
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
VERSION
VERSION
+1
-1
storage/innobase/mtr/mtr0mtr.cc
storage/innobase/mtr/mtr0mtr.cc
+7
-1
No files found.
VERSION
View file @
f8a735d6
MYSQL_VERSION_MAJOR=10
MYSQL_VERSION_MINOR=11
MYSQL_VERSION_PATCH=
9
MYSQL_VERSION_PATCH=
10
SERVER_MATURITY=stable
storage/innobase/mtr/mtr0mtr.cc
View file @
f8a735d6
...
...
@@ -1042,13 +1042,19 @@ std::pair<lsn_t,byte*> log_t::append_prepare(size_t size, bool ex) noexcept
size_t
b
{
spin
?
lock_lsn
()
:
buf_free
.
load
(
std
::
memory_order_relaxed
)};
write_to_buf
++
;
const
lsn_t
l
{
lsn
.
load
(
std
::
memory_order_relaxed
)},
end_lsn
{
l
+
size
};
lsn_t
l
{
lsn
.
load
(
std
::
memory_order_relaxed
)},
end_lsn
{
l
+
size
};
if
(
UNIV_UNLIKELY
(
pmem
?
(
end_lsn
-
get_flushed_lsn
(
std
::
memory_order_relaxed
))
>
capacity
()
:
b
+
size
>=
buf_size
))
{
b
=
append_prepare_wait
<
spin
>
(
b
,
ex
,
l
);
/* While flushing log, we had released the lsn lock and LSN could have
progressed in the meantime. */
l
=
lsn
.
load
(
std
::
memory_order_relaxed
);
end_lsn
=
l
+
size
;
}
size_t
new_buf_free
=
b
+
size
;
if
(
pmem
&&
new_buf_free
>=
file_size
)
...
...
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