摘要 |
A method for selectively releasing locks when rolling back to a savepoint includes: providing at least one savepoint in a transaction, where at least one lock is assigned to the at least one savepoint and at least one lock is assigned to the transaction; rolling back the transaction to the at least one savepoint; and releasing the at least one lock assigned to the at least one savepoint, where the at least one lock assigned to the transaction is maintained. Locks which are to persist until commit are assigned to the transaction. Locks which are to be released when rolled back to a savepoint are assigned to the savepoint. When a rollback to the savepoint occurs, locks assigned to the savepoint are released while locks assigned to the transaction are maintained. In this manner, selective release of locks is provided without incurring unduly burdensome overhead. |