A distributed lock management method and device
A distributed lock and management method technology, applied in the computer field, can solve problems such as lock conflicts and low processing efficiency, and achieve the effects of alleviating lock hunger, improving processing efficiency, and shortening processing time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] figure 1 It is a schematic flowchart of the distributed lock management method in Embodiment 1 of the present invention. Such as figure 1 As shown, the distributed lock management method provided by the embodiment of the present invention includes:
[0032] Step S101 , after receiving the lock request of the transaction, it is determined whether the access data of the transaction is located in the local computer cluster by querying the local knowledge configuration table.
[0033]Wherein, the local knowledge configuration table records the information of the data in the local computer cluster, such as the data identifier in the local computer cluster. In an optional example, after receiving the lock request of the transaction, the distributed lock management device can parse out the access data identifier of the transaction from the lock request, and then query according to the access data identifier of the transaction Local knowledge configuration table. If the acc...
Embodiment 2
[0046] figure 2 is a schematic flowchart of the distributed lock management method in Embodiment 2 of the present invention. Such as figure 2 As shown, the distributed lock management method provided by the embodiment of the present invention includes:
[0047] Step S201. After receiving the lock request of the transaction, it is determined whether the access data of the transaction is located in the local computer cluster by querying the local knowledge configuration table. If the access data of the transaction is located in the local computer cluster, step S202 may be executed; if the access data of the transaction is not located in the local computer cluster, step S206 may be executed.
[0048] Wherein, the local knowledge configuration table records the information of the data in the local computer cluster, such as the data identifier in the local computer cluster. In an optional example, after receiving the lock request of the transaction, the distributed lock manage...
Embodiment 3
[0071] Figure 4 It is a schematic diagram of the module composition of the distributed lock management device in Embodiment 3 of the present invention. Such as Figure 4 As shown, the distributed lock management device 400 of the embodiment of the present invention includes: a judgment module 401 , an allocation module 402 , and an authorization module 403 .
[0072] The judging module 401 is configured to, after receiving the lock request of the transaction, judge whether the access data of the transaction is located in the local computer cluster by querying the local knowledge configuration table.
[0073] Wherein, the local knowledge configuration table records the information of the data in the local computer cluster, such as the data identifier in the local computer cluster. In an optional example, after receiving the lock request of the transaction, the judging module 401 can parse out the access data identifier of the transaction from the lock request, and then query...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


