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]>
(cherry picked from commit 201b0a9)
  • Loading branch information
bungle authored and dndx committed Nov 9, 2023
1 parent cdb509e commit 608886b
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

0 comments on commit 608886b

Please sign in to comment.