* sends data to a copy command on all segments. */
| 220 | * sends data to a copy command on all segments. |
| 221 | */ |
| 222 | void |
| 223 | cdbCopySendDataToAll(CdbCopy *c, const char *buffer, int nbytes) |
| 224 | { |
| 225 | Gang *gp = getCdbCopyPrimaryGang(c); |
| 226 | |
| 227 | Assert(gp); |
| 228 | |
| 229 | for (int i = 0; i < gp->size; ++i) |
| 230 | { |
| 231 | int seg = gp->db_descriptors[i]->segindex; |
| 232 | |
| 233 | cdbCopySendData(c, seg, buffer, nbytes); |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | /* |
| 238 | * sends data to a copy command on a specific segment (usually |
no test coverage detected