Patent ID: 9449041
Filing Date: 2016-09-20
CPC Classification: G06F

Claim Text:
1. A database system lock operation method, comprising: acquiring, by a first processing node, a lock operand of a target lock, wherein the lock operand is used to record a current state of the target lock on each processing node in a database system, and wherein the current state of the target lock on each processing node in the database system is represented by one or more data bits in the lock operand; performing, by the first processing node, a lock acquiring operation on a target data object using the target lock; acquiring, by the first processing node, an original value of the lock operand at a moment when the target lock is used to perform the lock acquiring operation on the target data object; updating, by the first processing node, a value of a data bit in the lock operand that is in the original value and used to indicate the state of the target lock on the first processing node to the value that is used to indicate that the state of the target lock on the first processing node is lock held; and determining, by the first processing node according to the lock operand, whether the lock acquiring operation is successful, wherein the lock acquiring operation is successful when the original value meets a condition for a successful lock acquiring operation, and wherein the lock acquiring operation fails when the original value does not meet a condition for a successful lock acquiring operation.