Skip to content

Commit

Permalink
refactor(clustering/sync): delta.ws_id is not necessary (#13837)
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored Nov 8, 2024
1 parent 08de6fe commit 5f5f7d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kong/clustering/services/sync/rpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,10 @@ local function do_sync()
local delta_entity = delta.entity
local ev

-- delta must have ws_id to generate the correct lmdb key
-- delta should have ws_id to generate the correct lmdb key
-- if entity is workspaceable
-- set the correct workspace for item
opts.workspace = assert(delta.ws_id)
opts.workspace = delta.ws_id

if delta_entity ~= nil and delta_entity ~= ngx_null then
-- upsert the entity
Expand Down

1 comment on commit 5f5f7d5

@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:5f5f7d5ea51ac16263b32c1446a08e00816150f9
Artifacts available https://github.com/Kong/kong/actions/runs/11734071337

Please sign in to comment.