From 48ac052de8fe424df8c931edae23f8f40c3c2047 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 25 Jun 2025 16:35:03 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index 25e89adf5..2d8208b84 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3006,6 +3006,8 @@ def setSlaveStatus(version=''): if (v["Slave_IO_Running"] == 'Yes' or v["Slave_SQL_Running"] == 'Yes'): pdb.query("stop {}".format(cmd)) + if (v["Replica_IO_Running"] == 'Yes' or v["Replica_SQL_Running"] == 'Yes'): + pdb.query("stop {}".format(cmd)) else: pdb.query("start {}".format(cmd))