Skip to content

Commit

Permalink
Merge pull request #199 from gys-git/master
Browse files Browse the repository at this point in the history
V2.9.2
  • Loading branch information
gys-git authored Jun 18, 2024
2 parents fcefb29 + d46fe65 commit 0ce8adb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/ocp-server/4.2.1/start_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def get_option(key, default=''):
if not abs((now - ob_time).total_seconds()) < 180:
critical('time check', err.EC_OCP_SERVER_TIME_SHIFT.format(server=server))

if cursor:
if cursor and cursor.user == 'root@sys':
stdio.verbose('tenant check ')
zone_obs_num = {}
sql = "select zone, count(*) num from oceanbase.DBA_OB_SERVERS where status = 'active' group by zone"
Expand Down
2 changes: 1 addition & 1 deletion plugins/ocp-server/4.2.2/start_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def get_option(key, default=''):
if not abs((now - ob_time).total_seconds()) < 180:
critical('time check', err.EC_OCP_SERVER_TIME_SHIFT.format(server=server))

if cursor:
if cursor and cursor.user == 'root@sys':
stdio.verbose('tenant check ')
zone_obs_num = {}
sql = "select zone, count(*) num from oceanbase.DBA_OB_SERVERS where status = 'active' group by zone"
Expand Down

0 comments on commit 0ce8adb

Please sign in to comment.