diff --git a/src/box/txn.c b/src/box/txn.c index 9f61303ab2d46bdad515101ee1fd15b6ea75dafc..6bb1b06ed9457177551669505db7001faf1328df 100644 --- a/src/box/txn.c +++ b/src/box/txn.c @@ -554,6 +554,8 @@ txn_prepare(struct txn *txn) trigger_clear(&txn->fiber_on_stop); if (!txn_has_flag(txn, TXN_CAN_YIELD)) trigger_clear(&txn->fiber_on_yield); + + txn->start_tm = ev_monotonic_now(loop()); return 0; } @@ -569,7 +571,6 @@ txn_commit_async(struct txn *txn) * After this point the transaction must not be used * so reset the corresponding key in the fiber storage. */ - txn->start_tm = ev_monotonic_now(loop()); if (txn->n_new_rows + txn->n_applier_rows == 0) { /* Nothing to do. */ txn->signature = 0;