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 <aapo.talvensaari@gmail.com>
  • Loading branch information
bungle authored and windmgc committed Jan 24, 2024
1 parent 73ffd28 commit f94b7c4
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 @@ -567,7 +567,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

0 comments on commit f94b7c4

Please sign in to comment.