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
23368b76
Commit
23368b76
authored
Feb 23, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.4 into 10.5
parents
a112a80b
46764652
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
17 deletions
+19
-17
sql/sql_class.cc
sql/sql_class.cc
+2
-2
sql/wsrep_condition_variable.h
sql/wsrep_condition_variable.h
+5
-5
sql/wsrep_mutex.h
sql/wsrep_mutex.h
+5
-5
sql/wsrep_server_state.cc
sql/wsrep_server_state.cc
+2
-2
storage/innobase/dict/dict0mem.cc
storage/innobase/dict/dict0mem.cc
+5
-3
No files found.
sql/sql_class.cc
View file @
23368b76
...
...
@@ -706,8 +706,8 @@ THD::THD(my_thread_id id, bool is_wsrep_applier)
/* wsrep-lib */
m_wsrep_next_trx_id
(
WSREP_UNDEFINED_TRX_ID
),
m_wsrep_mutex
(
LOCK_thd_data
),
m_wsrep_cond
(
COND_wsrep_thd
),
m_wsrep_mutex
(
&
LOCK_thd_data
),
m_wsrep_cond
(
&
COND_wsrep_thd
),
m_wsrep_client_service
(
this
,
m_wsrep_client_state
),
m_wsrep_client_state
(
this
,
m_wsrep_mutex
,
...
...
sql/wsrep_condition_variable.h
View file @
23368b76
...
...
@@ -26,7 +26,7 @@ class Wsrep_condition_variable : public wsrep::condition_variable
{
public:
Wsrep_condition_variable
(
mysql_cond_t
&
cond
)
Wsrep_condition_variable
(
mysql_cond_t
*
cond
)
:
m_cond
(
cond
)
{
}
~
Wsrep_condition_variable
()
...
...
@@ -34,21 +34,21 @@ class Wsrep_condition_variable : public wsrep::condition_variable
void
notify_one
()
{
mysql_cond_signal
(
&
m_cond
);
mysql_cond_signal
(
m_cond
);
}
void
notify_all
()
{
mysql_cond_broadcast
(
&
m_cond
);
mysql_cond_broadcast
(
m_cond
);
}
void
wait
(
wsrep
::
unique_lock
<
wsrep
::
mutex
>&
lock
)
{
mysql_mutex_t
*
mutex
=
static_cast
<
mysql_mutex_t
*>
(
lock
.
mutex
()
->
native
());
mysql_cond_wait
(
&
m_cond
,
mutex
);
mysql_cond_wait
(
m_cond
,
mutex
);
}
private:
mysql_cond_t
&
m_cond
;
mysql_cond_t
*
m_cond
;
};
#endif
/* WSREP_CONDITION_VARIABLE_H */
sql/wsrep_mutex.h
View file @
23368b76
...
...
@@ -25,26 +25,26 @@
class
Wsrep_mutex
:
public
wsrep
::
mutex
{
public:
Wsrep_mutex
(
mysql_mutex_t
&
mutex
)
Wsrep_mutex
(
mysql_mutex_t
*
mutex
)
:
m_mutex
(
mutex
)
{
}
void
lock
()
{
mysql_mutex_lock
(
&
m_mutex
);
mysql_mutex_lock
(
m_mutex
);
}
void
unlock
()
{
mysql_mutex_unlock
(
&
m_mutex
);
mysql_mutex_unlock
(
m_mutex
);
}
void
*
native
()
{
return
&
m_mutex
;
return
m_mutex
;
}
private:
mysql_mutex_t
&
m_mutex
;
mysql_mutex_t
*
m_mutex
;
};
#endif
/* WSREP_MUTEX_H */
sql/wsrep_server_state.cc
View file @
23368b76
...
...
@@ -43,8 +43,8 @@ Wsrep_server_state::Wsrep_server_state(const std::string& name,
initial_position
,
max_protocol_version
,
wsrep
::
server_state
::
rm_sync
)
,
m_mutex
(
LOCK_wsrep_server_state
)
,
m_cond
(
COND_wsrep_server_state
)
,
m_mutex
(
&
LOCK_wsrep_server_state
)
,
m_cond
(
&
COND_wsrep_server_state
)
,
m_service
(
*
this
)
{
}
...
...
storage/innobase/dict/dict0mem.cc
View file @
23368b76
...
...
@@ -2,7 +2,7 @@
Copyright (c) 1996, 2018, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2012, Facebook Inc.
Copyright (c) 2013, 202
1
, MariaDB Corporation.
Copyright (c) 2013, 202
2
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -1216,6 +1216,8 @@ inline bool dict_index_t::reconstruct_fields()
{
DBUG_ASSERT
(
is_primary
());
const
auto
old_n_fields
=
n_fields
;
n_fields
=
(
n_fields
+
table
->
instant
->
n_dropped
)
&
dict_index_t
::
MAX_N_FIELDS
;
n_def
=
(
n_def
+
table
->
instant
->
n_dropped
)
...
...
@@ -1243,11 +1245,11 @@ inline bool dict_index_t::reconstruct_fields()
}
else
{
DBUG_ASSERT
(
!
c
.
is_not_null
());
const
auto
old
=
std
::
find_if
(
fields
+
n_first
,
fields
+
n_fields
,
fields
+
n_first
,
fields
+
old_
n_fields
,
[
c
](
const
dict_field_t
&
o
)
{
return
o
.
col
->
ind
==
c
.
ind
();
});
if
(
old
>=
fields
+
n_fields
if
(
old
>=
fields
+
old_
n_fields
||
old
->
prefix_len
||
old
->
col
!=
&
table
->
cols
[
c
.
ind
()])
{
return
true
;
...
...
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