Skip to content

Commit

Permalink
ignore local lsn in wait_cluster_vclock
Browse files Browse the repository at this point in the history
When waiting for cluster vclock, local component must be ignored because
it's independent on each replica, so the commit fixes corresponding
helper.
  • Loading branch information
drewdzzz committed Jul 25, 2024
1 parent 240cdea commit d46f866
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test_run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,11 @@ local function get_cluster_vclock(self, servers)
end

local function wait_cluster_vclock(self, servers, vclock)
-- Ignore local component
local wait_vclock = table.deepcopy(vclock)
wait_vclock[0] = nil
for _, name in pairs(servers) do
self:wait_vclock(name, vclock)
self:wait_vclock(name, wait_vclock)
end
return vclock
end
Expand Down

0 comments on commit d46f866

Please sign in to comment.