Commit abe6d79
committed
refactor(utils): Simplify GetSegmentsHost to fetch all segments
Removes the specialized logic for fetching segments based on the current
warehouse in Cloudberry Enterprise DB.
The function now consistently retrieves all primary segments from
gp_segment_configuration, regardless of the database type. This
simplifies the implementation and ensures uniform behavior.1 parent ee0f61f commit abe6d79
1 file changed
Lines changed: 1 addition & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 25 | + | |
49 | 26 | | |
50 | 27 | | |
51 | 28 | | |
52 | 29 | | |
53 | 30 | | |
54 | 31 | | |
55 | | - | |
56 | 32 | | |
57 | 33 | | |
58 | 34 | | |
| |||
0 commit comments