Skip to content

Commit

Permalink
2.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gys-git committed Jun 18, 2024
1 parent fcefb29 commit d46fe65
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 d46fe65

Please sign in to comment.