Help Center/
GaussDB/
Feature Guide(Centralized_3.x)/
Storage Engine/
Ustore/
Ustore Transaction Model
Updated on 2024-07-04 GMT+08:00
Ustore Transaction Model
GaussDB transaction basis:
- An XID is not automatically allocated when a transaction is started, unless the first DML/DDL statement in the transaction is executed.
- When a transaction ends, a commit log (Clog) indicating the transaction commit state is generated. The states can be IN_PROGRESS, COMMITTED, ABORTED, or SUB_COMMITTED. Each transaction has two Clog status bits. Each byte on the Clog page indicates four transaction commit states.
- When a transaction ends, a commit sequence number (CSN) is generated, which is an instance-level variable. Each XID has its unique CSN. The CSN can mark the following transaction states: IN_PROGRESS, COMMITTED, ABORTED, or SUB_COMMITTED.
Parent topic: Ustore
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot