commit

Commits an uncommitted transaction for a specified space member or for all metaspace members.

Syntax

commit transaction [all | member_name <string> | transaction_id <string>]

Parameters

The following table describes the parameters for this command.

commit transaction Parameters
Parameter Description
all Specify all to commit all transactions for all metaspace members.
member_name Specify a member name to commit the uncommitted transactions for a specified space member.
transaction_id Specify a transaction ID to commit a transaction with a specific transaction ID.
Caution: When you commit or rollback a transaction from as-admin, the member which began the transaction continues to remain in the transaction. So that member must either commit or rollback the transaction before it can start another transaction. However, the commit or rollback by the member will have no effect on the space since as-admin has already performed a commit or rollback on the original tuples in the transaction. To avoid this issue, use execute on member to cause the commit or rollback to be performed by the member owning the transaction.