Skip to content
Snippets Groups Projects
Commit e448cfed 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 f9950440
No related branches found
No related tags found
No related merge requests found
...@@ -182,6 +182,7 @@ relay_new(struct replica *replica) ...@@ -182,6 +182,7 @@ relay_new(struct replica *replica)
return NULL; return NULL;
} }
relay->replica = replica; relay->replica = replica;
relay->last_row_time = ev_monotonic_now(loop());
fiber_cond_create(&relay->reader_cond); fiber_cond_create(&relay->reader_cond);
diag_create(&relay->diag); diag_create(&relay->diag);
stailq_create(&relay->pending_gc); stailq_create(&relay->pending_gc);
...@@ -203,6 +204,7 @@ relay_start(struct relay *relay, int fd, uint64_t sync, ...@@ -203,6 +204,7 @@ relay_start(struct relay *relay, int fd, uint64_t sync,
coio_create(&relay->io, fd); coio_create(&relay->io, fd);
relay->sync = sync; relay->sync = sync;
relay->state = RELAY_FOLLOW; relay->state = RELAY_FOLLOW;
relay->last_row_time = ev_monotonic_now(loop());
} }
void 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