File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/compass-global-writes/src/store Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 .
628628export const showConfirmation = showConfirmationModal ;
629629
630630export 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 }
You can’t perform that action at this time.
0 commit comments