Skip to content

Commit 773c7b2

Browse files
committed
PS-9500: Code refresh for 8.0.41-32 (conflicts solved)
1 parent 3044219 commit 773c7b2

File tree

9 files changed

+28
-115
lines changed

9 files changed

+28
-115
lines changed

MYSQL_VERSION

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
MYSQL_VERSION_MAJOR=8
22
MYSQL_VERSION_MINOR=0
3-
<<<<<<< HEAD
4-
MYSQL_VERSION_PATCH=40
5-
MYSQL_VERSION_EXTRA=-31
6-
||||||| 89e1c722476d
7-
MYSQL_VERSION_PATCH=40
8-
MYSQL_VERSION_EXTRA=
9-
=======
103
MYSQL_VERSION_PATCH=41
11-
MYSQL_VERSION_EXTRA=
12-
>>>>>>> mysql-8.0.41
4+
MYSQL_VERSION_EXTRA=-32
135
MYSQL_VERSION_STABILITY="LTS"

client/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,15 @@ MYSQL_ADD_EXECUTABLE(mysqltest
7575
ENABLE_EXPORTS
7676
LINK_LIBRARIES perconaserverclient
7777
)
78-
<<<<<<< HEAD
78+
7979
IF (WITH_COREDUMPER)
8080
TARGET_LINK_LIBRARIES(mysqltest coredumper)
8181
ENDIF()
8282

83-
||||||| 89e1c722476d
84-
=======
85-
8683
IF(MY_COMPILER_IS_GNU AND (WITH_LTO OR CMAKE_COMPILER_FLAG_WITH_LTO))
8784
TARGET_LINK_OPTIONS(mysqltest PRIVATE -Wno-error=stringop-overflow)
8885
ENDIF()
8986

90-
>>>>>>> mysql-8.0.41
9187
MYSQL_ADD_EXECUTABLE(mysqlcheck
9288
check/mysqlcheck.cc
9389
check/mysqlcheck_core.cc

man/mysqldumpslow.1

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,12 @@
22
.\" Title: mysqldumpslow
33
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
44
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
5-
<<<<<<< HEAD
6-
.\" Date: 08/31/2023
7-
||||||| 89e1c722476d
8-
.\" Date: 09/17/2024
9-
=======
105
.\" Date: 12/13/2024
11-
>>>>>>> mysql-8.0.41
126
.\" Manual: MySQL Database System
137
.\" Source: MySQL 8.0
148
.\" Language: English
159
.\"
16-
<<<<<<< HEAD
17-
.TH "MYSQLDUMPSLOW" "1" "08/31/2023" "MySQL 8\&.0" "MySQL Database System"
18-
||||||| 89e1c722476d
19-
.TH "MYSQLDUMPSLOW" "1" "09/17/2024" "MySQL 8\&.0" "MySQL Database System"
20-
=======
2110
.TH "MYSQLDUMPSLOW" "1" "12/13/2024" "MySQL 8\&.0" "MySQL Database System"
22-
>>>>>>> mysql-8.0.41
2311
.\" -----------------------------------------------------------------
2412
.\" * Define some portability stuff
2513
.\" -----------------------------------------------------------------

mysql-test/r/mysql_config_editor.result

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,8 @@ user = "test_user4"
100100
##############################################
101101
# Tests for mysql_config_editor's help command
102102
##############################################
103-
<<<<<<< HEAD
104-
Copyright (c) 2009-2024 Percona LLC and/or its affiliates
105-
Copyright (c) 2012, 2024, Oracle and/or its affiliates.
106-
||||||| 89e1c722476d
107-
Copyright (c) 2012, 2024, Oracle and/or its affiliates.
108-
=======
103+
Copyright (c) 2009-2025 Percona LLC and/or its affiliates
109104
Copyright (c) 2012, 2025, Oracle and/or its affiliates.
110-
>>>>>>> mysql-8.0.41
111105

112106
Oracle is a registered trademark of Oracle Corporation and/or its
113107
affiliates. Other names may be trademarks of their respective

mysys/CMakeLists.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,20 +185,16 @@ IF(FREEBSD)
185185
ADD_COMPILE_FLAGS(stacktrace.cc COMPILE_FLAGS ${LIBUNWIND_CFLAGS})
186186
ENDIF()
187187

188-
<<<<<<< HEAD
189-
IF (WITH_COREDUMPER)
190-
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/extra/coredumper/include)
191-
ENDIF()
192-
193-
||||||| 89e1c722476d
194-
=======
195188
IF(WITH_EXT_BACKTRACE)
196189
SET(BACKTRACE_LIBRARIES ext::backtrace)
197190
ELSE()
198191
UNSET(BACKTRACE_LIBRARIES)
199192
ENDIF()
200193

201-
>>>>>>> mysql-8.0.41
194+
IF (WITH_COREDUMPER)
195+
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/extra/coredumper/include)
196+
ENDIF()
197+
202198
ADD_CONVENIENCE_LIBRARY(mysys ${MYSYS_SOURCES}
203199
LINK_LIBRARIES
204200
mytime

plugin/group_replication/src/certifier.cc

Lines changed: 18 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,17 +1302,6 @@ void Certifier::garbage_collect() {
13021302
ulonglong starttime = my_micro_time();
13031303

13041304
Certification_info::iterator it = certification_info.begin();
1305-
<<<<<<< HEAD
1306-
1307-
/*
1308-
The goal of the following loop is to avoid locking for too long transactions
1309-
on servers that have a high rate of trx. Processing 1M GTIDs in the original
1310-
code blocked the transaction processing for about 1s.
1311-
*/
1312-
||||||| 89e1c722476d
1313-
stable_gtid_set_lock->wrlock();
1314-
=======
1315-
stable_gtid_set_lock->wrlock();
13161305

13171306
uint64 garbage_collector_counter = garbage_collect_runs;
13181307

@@ -1321,10 +1310,14 @@ void Certifier::garbage_collect() {
13211310
garbage_collector_counter = 0;
13221311
});
13231312

1324-
>>>>>>> mysql-8.0.41
1313+
/*
1314+
The goal of the following loop is to avoid locking for too long transactions
1315+
on servers that have a high rate of trx. Processing 1M GTIDs in the original
1316+
code blocked the transaction processing for about 1s.
1317+
*/
13251318
while (it != certification_info.end()) {
1326-
<<<<<<< HEAD
13271319
stable_gtid_set_lock->wrlock();
1320+
uint64 write_set_counter = it->second->get_garbage_collect_counter();
13281321

13291322
/* Needs to increase the rate if it takes too long, add a chunk every 5s */
13301323
ulonglong rate_multiplier = (my_micro_time() - starttime) / 5000000 + 1;
@@ -1337,39 +1330,16 @@ void Certifier::garbage_collect() {
13371330
for (ulong i = 0; i < chunk_size; ++i) {
13381331
if (it == certification_info.end()) {
13391332
break;
1340-
||||||| 89e1c722476d
1341-
if (it->second->is_subset_not_equals(stable_gtid_set)) {
1342-
if (it->second->unlink() == 0) {
1343-
/*
1344-
Claim Gtid_set_ref used memory to
1345-
`thread/group_rpl/THD_certifier_broadcast` thread, since this is
1346-
thread that does release the memory.
1347-
*/
1348-
it->second->claim_memory_ownership(true);
1349-
delete it->second;
1350-
=======
1351-
uint64 write_set_counter = it->second->get_garbage_collect_counter();
1352-
1353-
/*
1354-
we need to clear gtid_set_ref if marked with UINT64_MAX or
1355-
subset_not_equals of stable_gtid_set
1356-
*/
1357-
if (write_set_counter == UINT64_MAX ||
1358-
(write_set_counter < garbage_collector_counter &&
1359-
it->second->is_subset_not_equals(stable_gtid_set))) {
1360-
it->second->set_garbage_collect_counter(UINT64_MAX);
1361-
if (it->second->unlink() == 0) {
1362-
/*
1363-
Claim Gtid_set_ref used memory to
1364-
`thread/group_rpl/THD_certifier_broadcast` thread, since this is
1365-
thread that does release the memory.
1366-
*/
1367-
it->second->claim_memory_ownership(true);
1368-
delete it->second;
1369-
>>>>>>> mysql-8.0.41
13701333
}
1371-
<<<<<<< HEAD
1372-
if (it->second->is_subset_not_equals(stable_gtid_set)) {
1334+
1335+
/*
1336+
we need to clear gtid_set_ref if marked with UINT64_MAX or
1337+
subset_not_equals of stable_gtid_set
1338+
*/
1339+
if (write_set_counter == UINT64_MAX ||
1340+
(write_set_counter < garbage_collector_counter &&
1341+
it->second->is_subset_not_equals(stable_gtid_set))) {
1342+
it->second->set_garbage_collect_counter(UINT64_MAX);
13731343
if (it->second->unlink() == 0) {
13741344
/*
13751345
Claim Gtid_set_ref used memory to
@@ -1381,6 +1351,9 @@ void Certifier::garbage_collect() {
13811351
}
13821352
certification_info.erase(it++);
13831353
} else {
1354+
DBUG_EXECUTE_IF("group_replication_ci_rows_counter_high",
1355+
{ assert(write_set_counter > 0); });
1356+
it->second->set_garbage_collect_counter(garbage_collector_counter);
13841357
++it;
13851358
}
13861359
} /* for loop */
@@ -1408,23 +1381,6 @@ void Certifier::garbage_collect() {
14081381
}
14091382
}
14101383
} /* while loop */
1411-
||||||| 89e1c722476d
1412-
certification_info.erase(it++);
1413-
} else
1414-
++it;
1415-
}
1416-
stable_gtid_set_lock->unlock();
1417-
=======
1418-
certification_info.erase(it++);
1419-
} else {
1420-
DBUG_EXECUTE_IF("group_replication_ci_rows_counter_high",
1421-
{ assert(write_set_counter > 0); });
1422-
it->second->set_garbage_collect_counter(garbage_collector_counter);
1423-
++it;
1424-
}
1425-
}
1426-
stable_gtid_set_lock->unlock();
1427-
>>>>>>> mysql-8.0.41
14281384

14291385
/* Incrememnt number of garbage collect runs*/
14301386
garbage_collect_runs++;

sql/auth/sql_auth_cache.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -833,11 +833,6 @@ class Acl_restrictions {
833833
malloc_unordered_map<std::string, Restrictions> m_restrictions_map;
834834
};
835835

836-
<<<<<<< HEAD
837-
extern ACL_USER acl_utility_user;
838-
839-
||||||| 89e1c722476d
840-
=======
841836
/**
842837
Enables preserving temporary account locking attributes during ACL DDL.
843838
Enables restoring temporary account locking attributes after ACL reload.
@@ -890,5 +885,6 @@ class ACL_temporary_lock_state {
890885
const long m_daynr_locked;
891886
};
892887

893-
>>>>>>> mysql-8.0.41
888+
extern ACL_USER acl_utility_user;
889+
894890
#endif /* SQL_USER_CACHE_INCLUDED */

sql/auth/sql_user.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3475,13 +3475,8 @@ bool mysql_alter_user(THD *thd, List<LEX_USER> &list, bool if_exists) {
34753475
return true;
34763476
}
34773477

3478-
<<<<<<< HEAD
3479-
3480-
||||||| 89e1c722476d
3481-
=======
34823478
Lock_state_list modified_user_lock_state_list;
34833479

3484-
>>>>>>> mysql-8.0.41
34853480
if (check_system_user_privilege(thd, list)) {
34863481
commit_and_close_mysql_tables(thd);
34873482
return true;

storage/innobase/include/univ.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ this program; if not, write to the Free Software Foundation, Inc.,
5656
#define INNODB_VERSION_BUGFIX MYSQL_VERSION_PATCH
5757

5858
#ifndef PERCONA_INNODB_VERSION
59-
#define PERCONA_INNODB_VERSION 31
59+
#define PERCONA_INNODB_VERSION 32
6060
#endif
6161

6262
/* The following is the InnoDB version as shown in

0 commit comments

Comments
 (0)