forked from greenplum-db/pxf-archive
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor closing connection to pxf external-table and fdw
The C-part of the PXF external table releases the context (cleanup_context) only on the last call in the pxfprotocol_export and pxfprotocol_import functions. The C-part of the PXF fdw releases the context (PxfBridgeCleanup) only in the FinishForeignModify function. 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
1 parent
c6eed7e
commit b244843
Showing
6 changed files
with
201 additions
and
122 deletions.
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
Oops, something went wrong.