Skip to content

Commit

Permalink
fix(sync): prevent unnecessary modifications to kong.default_workspace (
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits authored Nov 14, 2024
1 parent f88da7d commit 86e37ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kong/clustering/services/sync/rpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ local function do_sync()
-- and replace the old one with it
local default_ws_changed
for _, delta in ipairs(deltas) do
if delta.type == "workspaces" and delta.entity.name == "default" then
if delta.type == "workspaces" and delta.entity.name == "default" and
kong.default_workspace ~= delta.entity.id
then
kong.default_workspace = delta.entity.id
default_ws_changed = true
break
Expand Down

1 comment on commit 86e37ce

@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:86e37ce378dd95f61182a43bac3cd3668d103903
Artifacts available https://github.com/Kong/kong/actions/runs/11829766692

Please sign in to comment.