Skip to content

Commit becce3d

Browse files
committed
updated comment
1 parent 2462974 commit becce3d

File tree

1 file changed

+3
-3
lines changed
  • packages/compass-global-writes/src/store

1 file changed

+3
-3
lines changed

packages/compass-global-writes/src/store/reducer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ export const createShardKey = (
624624
};
625625

626626
// Exporting this for test only to stub it and set
627-
// its value. This enables to test cancelSharding action.
627+
// its value. This enables to test cancelShardingaction.
628628
export const showConfirmation = showConfirmationModal;
629629

630630
export const cancelSharding = (): GlobalWritesThunkAction<
@@ -783,8 +783,8 @@ export const fetchNamespaceShardKey = (): GlobalWritesThunkAction<
783783

784784
if (managedNamespace && !shardKey) {
785785
if (!shardingError) {
786-
// there is neither a shardKey nor shardingError
787-
// means sharding is in progress
786+
// Since the namespace is managed, Atlas has been instructed to shard this collection,
787+
// and since there is no shard key and no sharding error, the shard must still be in progress
788788
dispatch(setNamespaceBeingSharded());
789789
return;
790790
}

0 commit comments

Comments
 (0)