Skip to content

Commit

Permalink
fix(db): pg store connection called without self
Browse files Browse the repository at this point in the history
### Summary

The PR #11480 introduced a bug that calls `store_connection`
without passing `self`. This fixes that.

Signed-off-by: Aapo Talvensaari <[email protected]>
  • Loading branch information
bungle authored and jschmid1 committed Nov 7, 2023
1 parent d573911 commit 201b0a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/db/strategies/postgres/connector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ function _mt:query(sql, operation)
-- we cannot cleanup the connection
ngx.log(ngx.ERR, "failed to disconnect: ", err)
end
self.store_connection(nil, operation)
self:store_connection(nil, operation)

elseif is_new_conn then
local keepalive_timeout = self:get_keepalive_timeout(operation)
Expand Down

1 comment on commit 201b0a9

@khcp-gha-bot
Copy link

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:201b0a9858f4f185f7855ebf7900c52284e00138
Artifacts available https://github.com/Kong/kong/actions/runs/6782392173

Please sign in to comment.