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 authored and ylobankov committed Aug 1, 2024
1 parent 52d3e4f commit f23b535
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 f23b535

Please sign in to comment.