Skip to content
Snippets Groups Projects
Commit 0695fbbb authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Konstantin Osipov
Browse files

box: retrieve end vclock before starting local recovery

In order to find out if the current instance fell too much behind its
peers in the cluster and so needs to be rebootstrapped, we need to know
its vclock before we start local recovery. To do that, let's scan the
most recent xlog. In future, we can optimize that by either storing end
vclock in xlog eof marker or by making a new xlog on server stop.

Needed for #461
parent fa46ed59
No related merge requests found
Loading
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