Browse Source

[Docs] Fix typo in IndicesService (#59202)

Howard 5 years ago
parent
commit
3cb9105c6e

+ 2 - 2
server/src/main/java/org/elasticsearch/indices/IndicesService.java

@@ -1062,13 +1062,13 @@ public class IndicesService extends AbstractLifecycleComponent
         if (isAllocated) {
             return ShardDeletionCheckResult.STILL_ALLOCATED; // we are allocated - can't delete the shard
         } else if (indexSettings.hasCustomDataPath()) {
-            // lets see if it's on a custom path (return false if the shared doesn't exist)
+            // lets see if it's on a custom path (return false if the shard doesn't exist)
             // we don't need to delete anything that is not there
             return Files.exists(nodeEnv.resolveCustomLocation(indexSettings.customDataPath(), shardId)) ?
                 ShardDeletionCheckResult.FOLDER_FOUND_CAN_DELETE :
                 ShardDeletionCheckResult.NO_FOLDER_FOUND;
         } else {
-            // lets see if it's path is available (return false if the shared doesn't exist)
+            // lets see if it's path is available (return false if the shard doesn't exist)
             // we don't need to delete anything that is not there
             return FileSystemUtils.exists(nodeEnv.availableShardPaths(shardId)) ?
                 ShardDeletionCheckResult.FOLDER_FOUND_CAN_DELETE :