示例#1
0
 def __init__(self, txn_id: UUID):
     self.id = txn_id
     self.involved_tablets = None
     self.commit_time = HybridTime()
     self.status_log: List[StatusLogEntry] = []
     self.aborted = False
     self.log: List[TxnLogEntry] = []
示例#2
0
class TransactionConflictData(NamedTuple):
    id: UUID = UUID(int=0)
    status: TransactionStatus = TransactionStatus.UNKNOWN
    commit_time: HybridTime = HybridTime()
    priority: int = 0
    failed: bool = False