Skip to content

Commit

Permalink
update lock_conflict_scene (#356)
Browse files Browse the repository at this point in the history
* clog update

* build

* update

* update

* update

* update rca clog_disk_full_scene

* del SsherClient SafeStdio super init func

* update lock_conflict_scene
  • Loading branch information
wayyoungboy authored Jul 22, 2024
1 parent de372c0 commit 7014d7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handler/rca/scene/lock_conflict_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def __execute_4_2(self):
audit_switch_value = cursor_check_switch.fetchone().get("value")
if audit_switch_value.strip().upper() == "TRUE":
holding_lock_sql_info_cursor = self.ob_connector.execute_sql_return_cursor_dictionary('SELECT * FROM oceanbase.gv$OB_SQL_AUDIT where SID="{0}";'.format(holding_lock_session_id))
trans_record.add_record('exec sql: SELECT * FROM oceanbase.gv$OB_SQL_AUDIT where SID="{0}"; to get holding_lock_sql_info.'.format(holding_lock_session_id))
holding_lock_sql_info = holding_lock_sql_info_cursor.fetchall()
if len(holding_lock_sql_info) == 0:
trans_record.add_record("holding_lock_session_id: {0}; not find sql_info on gv$OB_SQL_AUDIT".format(holding_lock_session_id))
Expand Down

0 comments on commit 7014d7e

Please sign in to comment.