-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(clustering/rpc): cascade deleting for incremental sync #13836
base: master
Are you sure you want to change the base?
Conversation
@@ -161,8 +166,38 @@ function _M:register_dao_hooks() | |||
|
|||
ngx_log(ngx_DEBUG, "[kong.sync.v2] new delta due to deleting ", name) | |||
|
|||
-- set lmdb value to ngx_null then return row | |||
return self:entity_delta_writer(entity, name, options, ws_id, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that we lost this logic in the new patch? Is it intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, entity_delta_writer()
only process one entity, but in deletion we may have many entities, but the basic logic is same, please compare to entity_delta_writer()
.
Summary
KAG-5755
Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
Fix #[issue number]