Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_cluster_vclock: delete zero vclock component #369

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

grafin
Copy link
Member

@grafin grafin commented Jan 23, 2023

Zero vclock component is used for local transactions and is meaningless for cluster as a whole. Lets just delete it before returning the cluster vclock.

Zero vclock component is used for local transactions and is meaningless
for cluster as a whole.
@@ -224,6 +224,7 @@ local function get_cluster_vclock(self, servers)
end
end
end
vclock[0] = nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand, vclock is a table where keys are server IDs, values are lsn. How vclock[0] can exist?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vclock[0] is special: it stores lsn for local (non-replicated) entries.

@ylobankov ylobankov assigned ochaplashkin and unassigned ylobankov Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants