diff options
| author | Abbas | 2011-03-10 17:22:53 +0000 |
|---|---|---|
| committer | Pavan Deolasee | 2011-05-24 09:42:01 +0000 |
| commit | e4e773b5a1b5f731f293c3b8a481df18829ce27f (patch) | |
| tree | 82eaf9900fff0491ede77e959a6c5b3b3de3112c | |
| parent | dbd5de39c35a19e086e4680271674dbaa4141b67 (diff) | |
The test case portals finds a NULL connecction in ExecEndRemoteQuery and crashes the server. This patch puts a NULL check to avoid the crash
| -rw-r--r-- | src/backend/pgxc/pool/execRemote.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend/pgxc/pool/execRemote.c b/src/backend/pgxc/pool/execRemote.c index 9d70d9f8e2..9deb7b0c0c 100644 --- a/src/backend/pgxc/pool/execRemote.c +++ b/src/backend/pgxc/pool/execRemote.c @@ -3801,6 +3801,13 @@ ExecEndRemoteQuery(RemoteQueryState *node) pfree(node->currentRow.msg); node->currentRow.msg = NULL; } + + if (conn == NULL) + { + node->conn_count--; + continue; + } + /* no data is expected */ if (conn->state == DN_CONNECTION_STATE_IDLE || conn->state == DN_CONNECTION_STATE_ERROR_FATAL) |
