The TransactionIdManager creates Transaction ids that get assigned to VoltDB timestamps. A transaction id contains three fields, the time of creation, a counter to ensure local ordering, and the siteid of the generating site.
This class also contains methods to examine the embedded values of transaction ids.
If the clocks of two different machines are reasonably in sync, txn ids created at the same time on different machines will be reasonably close in value. Thus transaction ids can be used for a global ordering.
|
|