Skip to content

Commit

Permalink
update lock_conflict_scene
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Jul 22, 2024
1 parent 7445f70 commit 7d6b470
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 7d6b470

Please sign in to comment.