* pqCommandQueueAdvance * Remove one query from the command queue, when we receive * all results from the server that pertain to it. */
| 3012 | * all results from the server that pertain to it. |
| 3013 | */ |
| 3014 | void |
| 3015 | pqCommandQueueAdvance(PGconn *conn) |
| 3016 | { |
| 3017 | PGcmdQueueEntry *prevquery; |
| 3018 | |
| 3019 | if (conn->cmd_queue_head == NULL) |
| 3020 | return; |
| 3021 | |
| 3022 | /* delink from queue */ |
| 3023 | prevquery = conn->cmd_queue_head; |
| 3024 | conn->cmd_queue_head = conn->cmd_queue_head->next; |
| 3025 | |
| 3026 | /* and make it recyclable */ |
| 3027 | prevquery->next = NULL; |
| 3028 | pqRecycleCmdQueueEntry(conn, prevquery); |
| 3029 | } |
| 3030 | |
| 3031 | /* |
| 3032 | * pqPipelineProcessQueue: subroutine for PQgetResult |
no test coverage detected