Patent ID: 8676773

Claim:
A method for controlling a long-lived transaction, the method comprising: performing, via one or more processors, a plurality of sub-transactions from the long-lived transaction using an identifier associated with the long-lived transaction, wherein the plurality of the sub-transactions are required to be completed in a sequence for the long-lived transaction; determining, in response to performing the plurality of sub-transactions, that the plurality of sub-transactions require a write of a data value to a database; writing in a log, using the identifier, an entry that indicates the data value in response to performing the plurality of sub-transactions; detecting an interruption in performing of the write of the data value to the database; initiating re-performance of the plurality of sub-transactions in order of the sequence in response to detecting the interruption in the performing of the write of the data value to the database; during re-performance of the plurality of sub-transactions in order of the sequence, detecting the data value in the entry of the log using the identifier; and using, via at least one of the one or more processors, the data value indicated in the entry of the log to write the data value to the database in response to the detecting the data value in the entry of the log during re-performance of the plurality of sub-transactions in order of the sequence.