Skip to content

Commit

Permalink
fix(clustering/rpc): check deltas if it is nil (#14064)
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored Jan 2, 2025
1 parent 1b52c4a commit e0d6df7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kong/clustering/services/sync/rpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ local function do_sync()

local deltas = ns_delta.deltas

if not deltas then
return nil, "sync get_delta error: deltas is null"
end

if isempty(deltas) then
-- no delta to sync
return true
Expand Down

1 comment on commit e0d6df7

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:e0d6df75927e1fe9fcd32d338f6d24fe9e3d5d2f
Artifacts available https://github.com/Kong/kong/actions/runs/12579441916

Please sign in to comment.