From 732363ec41bff46deaf1b8e048672012b166eefd Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 22 Dec 2023 01:26:16 +0800 Subject: [PATCH] Update index.py --- plugins/mariadb/index.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/mariadb/index.py b/plugins/mariadb/index.py index d46c8ce71..1117577ef 100755 --- a/plugins/mariadb/index.py +++ b/plugins/mariadb/index.py @@ -90,6 +90,12 @@ def getDataDir(): tmp = re.search(rep, content) return tmp.groups()[0].strip() +def getLogBinName(): + file = getConf() + content = mw.readFile(file) + rep = 'log-bin\s*=\s*(.*)' + tmp = re.search(rep, content) + return tmp.groups()[0].strip() def getPidFile(): file = getConf()