> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/reference/clientserver-protocol/replication-protocol/xid_event.md).

# XID\_EVENT

An XID event is generated for a `COMMIT` of a transaction that modifies one or more tables of an XA-capable storage engine.

## Header

* Event Type is `XID_EVENT` (`0x10`).

## Fields

[uint<8>](/docs/server/reference/clientserver-protocol/protocol-data-types.md#fixed-length-integers) The XID transaction number.

## Complete Example With CRC32

```
ee b7 15 5a 10 01 00 00  00 1f 00 00 00 f2 0b 00  ...Z............
00 00 00 66 00 00 00 00  00 00 00 09 30 45 a8     ...f.........0E.
```

## Header, 19 Bytes

Event size is: header\[19] + XID\[8] + CRC32\[4] of (header + xid).

* Event Time ee b7 15 5a => 5a 15 b7 ee => 1511372782 \[2017-11-22 18:46:22].
* Event Type = 10.
* Server\_id 01 00 00 00 => 1.
* Event Size 1f 00 00 00 => 31.
* Next Pos f2 0b 00 00 => 00 00 0b f2 => 3058.
* Flags 00 00 = 0.

## Content, 8 Bytes

* XID 66 00 00 00 00 00 00 00 => 102.

## CRC32, 4 Bytes

* 09 30 45 a8 => a8 45 30 09 => 2823106569.

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/server/reference/clientserver-protocol/replication-protocol/xid_event.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
