发明授权
US06944615B2 System and method for avoiding deadlock situations due to pseudo-deleted entries
失效
用于避免由于伪删除条目引起的死锁情况的系统和方法
- 专利标题: System and method for avoiding deadlock situations due to pseudo-deleted entries
- 专利标题(中): 用于避免由于伪删除条目引起的死锁情况的系统和方法
-
申请号: US09894090申请日: 2001-06-28
-
公开(公告)号: US06944615B2公开(公告)日: 2005-09-13
- 发明人: James Zu-Chia Teng , Namik Hrle
- 申请人: James Zu-Chia Teng , Namik Hrle
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 代理机构: Fay, Sharpe, Fagan, Minnich & McKee, LLP
- 主分类号: G06F17/30
- IPC分类号: G06F17/30
摘要:
In a database management system (DBMS) (60) for a database application (10) including a database (12) having a table (14, 16, 18) and a unique key index (42) having indexes (44, 46, 48) therefor, the DBMS (60) includes a data manager (64), an index manager (66), a transaction manager (62), and a lock manager (68) which restricts access to the table by assigning locks to elements thereof. In order to avoid deadlock in the database application due to the pseudo-deleted entries, the lock categories include an X-lock and a Conditional S-lock, and have lock attributes including at least a Delete attribute for the X-lock. The Conditional S-lock is compatible (granted by the lock manager) with an X-lock whose Delete attribute is NOT SET, but is not compatible (granted) with an X-lock whose Delete attribute is SET. Each index entry includes a pseudo-delete flag which is SET by the index manager (66) to indicate deletion of the indexed row. Conditional upon locating a pseudo-deleted index key corresponding to a key to be added to the index, the index manager (66) requests a Conditional S-lock on the row indexed thereby, whereby the index manager (66) verifies the Delete transaction which set the pseudo-delete flag has committed.
公开/授权文献
信息查询