Skip to content

Commit

Permalink
fix(incremental sync): added comment for 2 times do_sync
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits committed Oct 29, 2024
1 parent 5551155 commit 930a240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/clustering/services/sync/rpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ local function sync_handler(premature)
end

local res, err = concurrency.with_worker_mutex(SYNC_MUTEX_OPTS, function()
-- here must be 2 times
-- must be 2 times for retrieving the latest delta version and latest deltas
for _ = 1, 2 do
local ok, err = do_sync()
if not ok then
Expand Down

0 comments on commit 930a240

Please sign in to comment.