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

applier: reduce applier_txn_rollback_cb code density


To make it a bit more readable.

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 7d904b2a
No related branches found
No related tags found
Loading
......@@ -695,8 +695,10 @@ applier_txn_rollback_cb(struct trigger *trigger, void *event)
/* Setup shared applier diagnostic area. */
diag_set(ClientError, ER_WAL_IO);
diag_move(&fiber()->diag, &replicaset.applier.diag);
/* Broadcast the rollback event across all appliers. */
trigger_run(&replicaset.applier.on_rollback, event);
/* Rollback applier vclock to the committed one. */
vclock_copy(&replicaset.applier.vclock, &replicaset.vclock);
return 0;
......
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