From 15f12c0b5461bee1b0d44c8fac218674c7792576 Mon Sep 17 00:00:00 2001
From: rtokarev <rtokarev@corp.mail.ru>
Date: Mon, 19 Aug 2019 11:01:06 +0300
Subject: [PATCH] relay: set `last_row_time' to `now' in `relay_new' and
 `relay_start'. (#4431)

(cherry picked from commit 507f37215ebcb5df882576d14eb5c135811b5fd9)
---
 src/box/relay.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/box/relay.cc b/src/box/relay.cc
index efa3373f9a..a19abf6a90 100644
--- a/src/box/relay.cc
+++ b/src/box/relay.cc
@@ -182,6 +182,7 @@ relay_new(struct replica *replica)
 		return NULL;
 	}
 	relay->replica = replica;
+	relay->last_row_time = ev_monotonic_now(loop());
 	fiber_cond_create(&relay->reader_cond);
 	diag_create(&relay->diag);
 	stailq_create(&relay->pending_gc);
@@ -203,6 +204,7 @@ relay_start(struct relay *relay, int fd, uint64_t sync,
 	coio_create(&relay->io, fd);
 	relay->sync = sync;
 	relay->state = RELAY_FOLLOW;
+	relay->last_row_time = ev_monotonic_now(loop());
 }
 
 void
-- 
GitLab