Skip to content
Snippets Groups Projects
Commit 15f12c0b authored by rtokarev's avatar rtokarev Committed by Konstantin Osipov
Browse files

relay: set `last_row_time' to `now' in `relay_new' and `relay_start'. (#4431)

(cherry picked from commit 507f3721)
parent 6277f48a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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