Commit 44a9f90
committed
Fix handling of interconnect_address and parallel worker check in single-node setup
In InitializeParallelDSM(), interconnect_address may be NULL in a single-node
deployment. Avoid passing NULL to strcpy() by checking before use and fall back
to an empty string.
Also, in index_create_internal(), refine the condition for enabling parallel
index build. Instead of testing "ii_ParallelWorkers != -1", use the clearer and
correct check "ii_ParallelWorkers > 0".1 parent 6a754f7 commit 44a9f90
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
383 | 386 | | |
384 | 387 | | |
385 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1388 | 1388 | | |
1389 | 1389 | | |
1390 | 1390 | | |
1391 | | - | |
| 1391 | + | |
1392 | 1392 | | |
1393 | 1393 | | |
1394 | 1394 | | |
| |||
0 commit comments