Skip to content

Commit c9aae85

Browse files
authored
chore(compass-crud): prepare for unsharded collections in sharding catalog COMPASS-7602 (#5420)
1 parent 954f195 commit c9aae85

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/compass-crud/src/utils/cancellable-queries.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@ export async function fetchShardingKeys(
8181
try {
8282
const docs = await dataService.find(
8383
'config.collections',
84-
{ _id: ns } as any,
84+
{
85+
_id: ns as any,
86+
// unsplittable introduced in PM-3364 to mark unsharded collections
87+
// that are still being tracked in the catalog
88+
unsplittable: { $ne: true },
89+
},
8590
{ maxTimeMS, projection: { key: 1, _id: 0 } },
8691
{ abortSignal: signal }
8792
);

0 commit comments

Comments
 (0)