Skip to content

Commit

Permalink
fix(core): yield before updating globals.CURRENT_TRANSACTION_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshuebner committed Oct 27, 2023
1 parent ca4d606 commit 2adca37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kong/runloop/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,9 @@ return {
end

if rebuild_transaction_id then
-- Yield to process any pending invalidations
utils.yield()

log(NOTICE, "configuration processing completed for transaction ID " .. rebuild_transaction_id)
global.CURRENT_TRANSACTION_ID = rebuild_transaction_id
end
Expand Down

0 comments on commit 2adca37

Please sign in to comment.