Skip to content

Commit

Permalink
Revert "fix that cp will not init clustering"
Browse files Browse the repository at this point in the history
This reverts commit b84f261.
  • Loading branch information
chobits committed Oct 16, 2024
1 parent d19c968 commit 3536e68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ function Kong.init_worker()
kong.cache:invalidate_local(constants.ADMIN_GUI_KCONFIG_CACHE_KEY)
end

if process.type() == "privileged agent" and (is_data_plane(kong.configuration) and not kong.sync) then
if process.type() == "privileged agent" and not kong.sync then
if kong.clustering then
-- full sync cp/dp
kong.clustering:init_worker()
Expand Down Expand Up @@ -984,7 +984,7 @@ function Kong.init_worker()
if kong.clustering then

-- full sync cp/dp
if is_control_plane(kong.configuration) or not kong.sync then
if not kong.sync then
kong.clustering:init_worker()
end

Expand Down

0 comments on commit 3536e68

Please sign in to comment.