[Tarantool-patches] [PATCH v2 4/7] applier: remove excess last_row_time update from subscribe loop

Serge Petrenko sergepetrenko at tarantool.org
Wed Mar 24 15:24:14 MSK 2021


applier->last_row_time is updated in applier_read_tx_row, which's called
at least once per each subscribe loop iteration. So there's no need to
have a separate last_row_time update inside the loop body itself.

Part of #5566
---
 src/box/applier.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/box/applier.cc b/src/box/applier.cc
index 07e557a51..d53f13711 100644
--- a/src/box/applier.cc
+++ b/src/box/applier.cc
@@ -1256,7 +1256,6 @@ applier_subscribe(struct applier *applier)
 		struct stailq rows;
 		applier_read_tx(applier, &rows);
 
-		applier->last_row_time = ev_monotonic_now(loop());
 		/*
 		 * In case of an heartbeat message wake a writer up
 		 * and check applier state.
-- 
2.24.3 (Apple Git-128)



More information about the Tarantool-patches mailing list