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

vinyl: simplify index hash building during vylog recovery

For the sake of recovery, we keep all vy_lsm_recovery_info objects in
vy_recovery::index_id_hash, which maps space_id/index_id to the latest
index incarnation. We build this hash while loading records from vylog,
which is rather difficult for understanding, because an LSM tree may
have a counterpart created by incomplete ALTER (see ->prepared) so we
have to link and unlink those objects very carefully. Let's simplify the
procedure by postponing hash building until we have loaded all records.
parent f2e30507
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