CA2391699C

System and method for logging transaction records in a computer system

Abstract

An improved method and system for logging transaction records in a computer system. The method may include writing a confirmation log record to the log file for a transaction that completes normally, and not writing a confirmation log record for transactionsthat are aborted. The log file may be unloaded periodically by an unload program. The unload programmay write transaction log records accompanied by a confirmation log record to a good output file and transaction log records not accompanied by a confirmationlog record to a suspended output file. On a subsequent execution, the unload program may combinethe log records in the log file and the suspended file. The unload program may write transaction log records accompanied by a confirmation log record to a good output file. The unload program may write transactionlog records not accompanied by a confirmation log record and which have not exceeded a transaction time limit to a suspended output file. The unload programmay write transaction log records not accompaniedby a confirmation log record and which have exceededa transaction time limit to a disposal output file. The transaction log records in the good output file may

CA2391699C, drawing sheet 1
Sheet 1 of 13

Term

Term ended

Expired 29 June 2020, 6.2 years ago.

  1. Priority
  2. Filed
  3. Granted
  4. Expired
  5. Today

43 claims: 3 independent, 40 dependent

  1. 1
    CA 02391699 2009-01-26 WHAT IS CLAIMED IS:1. A method comprising: writing a first transaction to a log file;completing the first transaction;writing a completion record for the first transaction to the log file , wherein the completion record indicates that the first transaction has completed;writing a second transaction to the log file;reading the completed first transaction from the log file;reading the second transaction from the log file;writing the completed first transaction to a completed transaction file;writing the second transaction to an uncompleted transaction file;completing the second transaction;writing a completion record for the second transaction to the log file, wherein the completion record indicates that the second transaction has completed;reading contents of the log file and contents of the uncompleted transaction file, wherein the contents of the log file include the completion record for the second transaction, and wherein the contents of the uncompleted transaction file include the second transaction;determining that the second transaction from the uncompleted transaction file corresponds to the completion record for the second transaction from the log file;and writing the completed second transaction to the completed transaction file in response to determining that the second transaction from the uncompleted transaction file corresponds to the completion record for the second transaction from the log file.
  2. 16
    A system comprising:a processing unit;a system memory coupled to the processing unit;a data storage coupled to the processing unit;wherein the system memory stores program instructions, wherein the program instructions are executable by the processing unit to: write a first transaction to a log file in the data storage;write a completion record for the first transaction to the log file, wherein the completion record indicates that the first transaction has completed;write a second transaction to the log file;read the completed first transaction from the log file;read the second transaction from the log file;write the completed first transaction to a completed transaction file in the data storage;write the second transaction to an uncompleted transaction file in the data storage;complete the second transaction;CA 02391699 2009-01-26 write a completion record for the second transaction to the log file, wherein the completion record indicates that the second transaction has completed;read contents of the log file and contents of the uncompleted transaction file, wherein the contents of the log file include the completion record for the second transaction, and wherein the contents of the uncompleted transaction file include the second transaction;determine that the second transaction from the uncompleted transaction file corresponds to the completion record for the second transaction from the log file;and write the completed second transaction to the completed transaction file in response to determining that the second transaction from the uncompleted transaction file corresponds to the completion record for the second transaction from the log file.
  3. 28
    A computer readable medium comprising computer readable code embodied thereon for executing a method that comprises:writing a first transaction to a log file;completing the first transaction;writing a completion record for the first transaction to the log file , wherein the completion record indicates that the first transaction has completed;writing a second transaction to the log file;reading the completed first transaction from the log file;reading the second transaction from the log file;writing the completed first transaction to a completed transaction file;writing the second transaction to an uncompleted transaction file;CA 02391699 2009-01-26 completing the second transaction;writing a completion record for the second transaction to the log file, wherein the completion record indicates that the second transaction has completed;reading contents of the log file and contents of the uncompleted transaction file, wherein the contents of the log file include the completion record for the second transaction, and wherein the contents of the uncompleted transaction file include the second transaction;determining that the second transaction from the uncompleted transaction file corresponds to the completion record for the second transaction from the log file;and writing the completed second transaction to the completed transaction file in response to determining that the second transaction from the uncompleted transaction file corresponds to the completion record for the second transaction from the log file.