Skip to content

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