> 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/sql-functions/special-functions/galera-functions.md).

# Galera Functions

{% columns %}
{% column %}
{% content-ref url="/pages/dX2aacIsnxo1fCrnMtfS" %}
[WSREP\_LAST\_SEEN\_GTID](/docs/server/reference/sql-functions/special-functions/galera-functions/wsrep_last_seen_gtid.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Return the GTID of the most recent write transaction. This function helps determine the transaction ID to use for synchronization waiting.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/kMzyx1wdiPWvlOaAM01k" %}
[WSREP\_LAST\_WRITTEN\_GTID](/docs/server/reference/sql-functions/special-functions/galera-functions/wsrep_last_written_gtid.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Return the GTID of the client's last write. This function identifies the specific transaction ID generated by the current client's most recent write operation.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/dc6oikkbaLqoTSPqT4Du" %}
[WSREP\_SYNC\_WAIT\_UPTO\_GTID](/docs/server/reference/sql-functions/special-functions/galera-functions/wsrep_sync_wait_upto_gtid.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Wait for a specific GTID to be applied. This function blocks the client until the node has committed the transaction with the specified Global Transaction ID.
{% endcolumn %}
{% endcolumns %}
