forked from greenplum-db/pxf-archive
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close connection to PXF when query to external table is canceled (#42)
The C-part of the PXF releases the context (cleanup_context) only on the last call in the pxfprotocol_export and pxfprotocol_import functions. That is, on errors, the context is not released, including curl-connections to the Java-part are not closed. Therefore, I added a callback to release resources on errors, which releases the context, including closing curl-connections.
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters