Explaining shardGroupSplitIntervalListList

pull/6029/head
Nitish Upreti 2022-07-08 22:45:07 -07:00
parent a30c791eeb
commit 5c635511d9
1 changed files with 8 additions and 0 deletions

View File

@ -677,6 +677,14 @@ CreateObjectOnPlacement(List *objectCreationCommandList,
/*
* Create split children intervals for a shardgroup given list of split points.
* Example:
* 'sourceColocatedShardIntervalList': Colocated shard S1[-2147483648, 2147483647] & S2[-2147483648, 2147483647]
* 'splitPointsForShard': [0] (2 way split)
* 'shardGroupSplitIntervalListList':
* [
* [ S1_1(-2147483648, 0), S1_2(1, 2147483647) ], // Split Interval List for S1.
* [ S2_1(-2147483648, 0), S2_2(1, 2147483647) ] // Split Interval List for S2.
* ]
*/
static List *
CreateSplitIntervalsForShardGroup(List *sourceColocatedShardIntervalList,