Skip to content

Commit

Permalink
pg/AsyncConnection: rename IsBusy() to IsRequestPending()
Browse files Browse the repository at this point in the history
Fixes a regression by commit e6ec15f which added an IsBusy()
method which shadowed Connection::IsBusy().
  • Loading branch information
MaxKellermann committed Aug 12, 2024
1 parent b85d270 commit d1de30e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pg/AsyncConnection.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public:
*
* Note that this is not the strict opposite of IsIdle().
*/
bool IsBusy() const noexcept {
bool IsRequestPending() const noexcept {
return result_handler != nullptr;
}

Expand Down
2 changes: 1 addition & 1 deletion src/pg/SharedConnection.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ SharedConnection::CancelQuery(SharedConnectionQuery &query) noexcept
usually not idle, but maybe it's waiting for
something else inbetween two queries, so we need to
check anyway */
if (connection.IsBusy())
if (connection.IsRequestPending())
connection.RequestCancel();

/* submit the next query (outside of this caller
Expand Down

0 comments on commit d1de30e

Please sign in to comment.