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 1ee51eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test_run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,13 @@ local function get_cluster_vclock(self, servers)
end

local function wait_cluster_vclock(self, servers, vclock)
-- Ignore local component since it's independent on each replica
local cluster_vclock = table.deepcopy(vclock)
cluster_vclock[0] = nil
for _, name in pairs(servers) do
self:wait_vclock(name, vclock)
self:wait_vclock(name, cluster_vclock)
end
return vclock
return cluster_vclock
end

local switch_cmd1 = "env = require('test_run')"
Expand Down

0 comments on commit 1ee51eb

Please sign in to comment.