* ParallelSlotsTerminate * Clean up a set of parallel slots * * Iterate through all connections in a given set of ParallelSlots and * terminate all connections. */
| 448 | * terminate all connections. |
| 449 | */ |
| 450 | void |
| 451 | ParallelSlotsTerminate(ParallelSlotArray *sa) |
| 452 | { |
| 453 | int i; |
| 454 | |
| 455 | for (i = 0; i < sa->numslots; i++) |
| 456 | { |
| 457 | PGconn *conn = sa->slots[i].connection; |
| 458 | |
| 459 | if (conn == NULL) |
| 460 | continue; |
| 461 | |
| 462 | disconnectDatabase(conn); |
| 463 | } |
| 464 | } |
| 465 | |
| 466 | /* |
| 467 | * ParallelSlotsWaitCompletion |
no test coverage detected