×

System and method for consistent timestamping in distributed computer databases

  • US 5,212,788 A
  • Filed: 05/22/1990
  • Issued: 05/18/1993
  • Est. Priority Date: 05/22/1990
  • Status: Expired due to Term
First Claim
Patent Images

1. A transaction management method for use in a distributed database system having a plurality of interconnected nodes,the steps of the method comprising:

  • (a) transmitting a prepare-to-commit message to each node in said system which is a cohort of a distributed transaction;

    (b) each cohort of said distributed transaction receiving said prepare-to-commit message and then voting on a disposition of said distributed transaction, said disposition being selected from the set consisting of aborting said transaction and committing said transaction;

    (c) each cohort voting to commit said transaction also voting a commit time range including an earliest time acceptable to said cohort for committing said transaction and a latest time acceptable to said cohort for committing said transaction;

    (d) whenever said cohorts all vote to commit said transaction and said time ranges voted by said cohorts have a non-empty intersection, committing said transaction and selecting a transaction time for said transaction from the intersection of said time ranges voted by said cohorts;

    (e) aborting said transaction whenever any of said cohorts vote to abort said transaction;

    (f) aborting said transaction whenever said time ranges voted by said cohorts do not intersect; and

    (g) repeating said steps (a) through (f) for a multiplicity of subsequent distributed transactions; and

    in a first distributed transaction whose cohorts include a read-only cohort that updates no data values during said first distributed transaction, setting a read lock in said read-only cohort for each datum accessed by said read-only cohort while performing said first distributed transaction, storing in said read-only cohort data indicating that each said read lock was set by said first distributed transaction, and releasing each said read lock no later than the latest time voted by said read-only cohort for said first distributed transaction.

View all claims
  • 4 Assignments
Timeline View
Assignment View
    ×
    ×