Skip to content
Snippets Groups Projects
Commit d513f6e2 authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

vinyl: move vlsn from vy_sequence to tx_manager and zap the former

It turns out that env->seq->vlsn (view sequence number, needed for
taking a consistent snapshot) is updated exclusively in the tx manager
thread and used only in vy_task work functions, which are scheduled by
the manager itself. So there isn't much point in keeping this variable
in the global environment and protecting it with a mutex - instead we
can store it directly in tx_manager and simply pass it as a member of
vy_task struct.

This patch isn't intended to introduce any functional changes.

Closes #1687
parent dcdf0e57
No related branches found
No related tags found
Loading
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