temp revert back changes that break even legacy emulator

This commit is contained in:
Theo van Kraay
2024-09-05 14:57:51 +01:00
committed by Chris Anderson
parent c101f7de74
commit d9d90ac6d9
3 changed files with 17 additions and 22 deletions
@@ -57,10 +57,9 @@ export class SmartRoutingMapProvider {
*/
async getOverlappingRanges(collectionLink, sortedRanges, diagnosticNode) {
// validate if the list is non- overlapping and sorted TODO: any PartitionKeyRanges
/*if (!SmartRoutingMapProvider._isSortedAndNonOverlapping(sortedRanges)) {
if (!SmartRoutingMapProvider._isSortedAndNonOverlapping(sortedRanges)) {
throw new Error("the list of ranges is not a non-overlapping sorted ranges");
}*/
sortedRanges = [];
}
let partitionKeyRanges = []; // TODO: any ParitionKeyRanges
if (sortedRanges.length === 0) {
return partitionKeyRanges;