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 committed Nov 6, 2023
1 parent 5f34a49 commit c3ce21d
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 @@ -568,7 +568,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 c3ce21d

Please sign in to comment.