Database race condition prevention
AssigneeStripe, Inc.
InventorsPeter Wang, Alexander Thiemann, Adam Eagle, Hongshan Zhou, Ji Huang
Life of this patent
Estimating the term…
Loading patent…
AssigneeStripe, Inc.
InventorsPeter Wang, Alexander Thiemann, Adam Eagle, Hongshan Zhou, Ji Huang
Estimating the term…
A method comprises: setting an first entry and an second entry in a database; receiving a first online transaction; responsive to determining a lock of the database is in progress, suspending the first online transaction; updating the first entry; removing the lock; receiving a second online transaction; responsive to determining that the first field is greater than zero, decrementing the first field by an amount indicated in the second online transaction; and responsive to determining the second entry is greater than zero, decrementing the second entry.
A method for preventing race conditions in a database by at least one hardware processor, comprising:
A non-transitory computer-readable storage medium, the computer-readable storage medium including instructions that when executed by a computer, cause the computer to perform operations comprising:
A database system, comprising:
Dependencies are inferred from the claim text.