diff --git a/kong/clustering/services/sync/rpc.lua b/kong/clustering/services/sync/rpc.lua index e75305a80166..592009f76f8a 100644 --- a/kong/clustering/services/sync/rpc.lua +++ b/kong/clustering/services/sync/rpc.lua @@ -219,7 +219,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