Skip to content
Snippets Groups Projects
Commit 290d5b28 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Kirill Yukhin
Browse files

box/txn: rename txn_write to txn_commit_async


To reflect the fact tha we're don't waiting for
transaction to complete but rely on completion
callback.

Acked-by: default avatarKonstantin Osipov <kostja.osipov@gmail.com>
Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 3e292592
No related branches found
No related tags found
No related merge requests found
......@@ -805,7 +805,7 @@ applier_apply_tx(struct stailq *rows)
trigger_create(on_commit, applier_txn_commit_cb, NULL, NULL);
txn_on_commit(txn, on_commit);
if (txn_write(txn) < 0)
if (txn_commit_async(txn) < 0)
goto fail;
/* Transaction was sent to journal so promote vclock. */
......
......@@ -558,7 +558,7 @@ txn_prepare(struct txn *txn)
}
int
txn_write(struct txn *txn)
txn_commit_async(struct txn *txn)
{
if (txn_prepare(txn) != 0) {
txn_rollback(txn);
......@@ -586,7 +586,7 @@ txn_commit(struct txn *txn)
{
txn->fiber = fiber();
if (txn_write(txn) != 0)
if (txn_commit_async(txn) != 0)
return -1;
/*
* In case of non-yielding journal the transaction could already
......
......@@ -300,7 +300,7 @@ txn_rollback(struct txn *txn);
* freed.
*/
int
txn_write(struct txn *txn);
txn_commit_async(struct txn *txn);
/**
* Most txns don't have triggers, and txn objects
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment