From 5b3df83557341c8964cf0158d29f5d992b274673 Mon Sep 17 00:00:00 2001 From: Sachin Kale Date: Wed, 26 Jul 2023 16:16:45 +0530 Subject: [PATCH] Address PR comments Signed-off-by: Sachin Kale --- .../remotestore/restore/RestoreRemoteStoreRequest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/action/admin/cluster/remotestore/restore/RestoreRemoteStoreRequest.java b/server/src/main/java/org/opensearch/action/admin/cluster/remotestore/restore/RestoreRemoteStoreRequest.java index a4a8aaf45d22a..eb1935158c231 100644 --- a/server/src/main/java/org/opensearch/action/admin/cluster/remotestore/restore/RestoreRemoteStoreRequest.java +++ b/server/src/main/java/org/opensearch/action/admin/cluster/remotestore/restore/RestoreRemoteStoreRequest.java @@ -122,9 +122,10 @@ public boolean waitForCompletion() { } /** - * If this parameter is set to true the operation will restore all the shards of the given indices + * Set the value for restoreAllShards, denoting whether to restore all shards or only unassigned shards * - * @param restoreAllShards if true the operation will restore all the shards + * @param restoreAllShards If true, the operation will restore all the shards of the given indices. + * If false, the operation will restore only the unassigned shards of the given indices. * @return this request */ public RestoreRemoteStoreRequest restoreAllShards(boolean restoreAllShards) {