Skip to content

Commit 29e2c7c

Browse files
author
Paweł Andruszkiewicz
committed
BUG#37457569 Exclude 'mysql_option_tracker_persister'@'localhost account during dump/load
The `mysql_option_tracker_persister` role is now automatically excluded when dumping with the `ocimds` option enabled. The `mysql_option_tracker_persister` role is now automatically excluded when loading a dump into an MHS instance. Change-Id: Iebda11b848ce984124190747828148e66bc14456
1 parent 69c09cf commit 29e2c7c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

modules/util/common/dump/constants.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, 2024, Oracle and/or its affiliates.
2+
* Copyright (c) 2023, 2025, Oracle and/or its affiliates.
33
*
44
* This program is free software; you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License, version 2.0,
@@ -39,8 +39,10 @@ constexpr inline std::array k_excluded_users = {
3939
};
4040

4141
constexpr inline std::array k_mhs_excluded_users = {
42-
"administrator", "ociadmin", "ocidbm", "ocimonitor",
43-
"ocirpl", "oracle-cloud-agent", "rrhhuser",
42+
"administrator", "mysql_option_tracker_persister",
43+
"ociadmin", "ocidbm",
44+
"ocimonitor", "ocirpl",
45+
"oracle-cloud-agent", "rrhhuser",
4446
};
4547

4648
constexpr inline std::array k_excluded_schemas = {

unittest/scripts/auto/py_shell/scripts/util_dump_and_load_norecord.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def prepare(sbport, options={}):
6565
session2.run_sql("set names utf8mb4")
6666

6767
# BUG#36159820 - accounts which are excluded when dumping with ocimds=true and when loading into MHS
68-
mhs_excluded_users = [ "administrator", "ociadmin", "ocidbm", "ocimonitor", "ocirpl", "oracle-cloud-agent", "rrhhuser" ]
68+
mhs_excluded_users = [ "administrator", "mysql_option_tracker_persister", "ociadmin", "ocidbm", "ocimonitor", "ocirpl", "oracle-cloud-agent", "rrhhuser" ]
6969

7070
## Tests to ensure restricted users dumped with strip_restricted_grants can be loaded with a restricted user and not just with root
7171

0 commit comments

Comments
 (0)