Skip to content

Commit

Permalink
Change base class of RestoreRemoteStoreRequest and TransportRestoreRe…
Browse files Browse the repository at this point in the history
…moteStoreAction

Signed-off-by: Sachin Kale <[email protected]>
  • Loading branch information
Sachin Kale committed Jun 16, 2022
1 parent 9598441 commit 4cda8e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import org.opensearch.action.ActionRequestValidationException;
import org.opensearch.action.support.IndicesOptions;
import org.opensearch.action.support.master.MasterNodeRequest;
import org.opensearch.action.support.clustermanager.ClusterManagerNodeRequest;
import org.opensearch.common.Strings;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
Expand All @@ -31,7 +31,7 @@
*
* @opensearch.internal
*/
public class RestoreRemoteStoreRequest extends MasterNodeRequest<RestoreRemoteStoreRequest> implements ToXContentObject {
public class RestoreRemoteStoreRequest extends ClusterManagerNodeRequest<RestoreRemoteStoreRequest> implements ToXContentObject {

private String[] indices = Strings.EMPTY_ARRAY;
private IndicesOptions indicesOptions = IndicesOptions.strictExpandOpen();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import org.opensearch.action.ActionListener;
import org.opensearch.action.support.ActionFilters;
import org.opensearch.action.support.master.TransportMasterNodeAction;
import org.opensearch.action.support.clustermanager.TransportClusterManagerNodeAction;
import org.opensearch.cluster.ClusterState;
import org.opensearch.cluster.block.ClusterBlockException;
import org.opensearch.cluster.block.ClusterBlockLevel;
Expand All @@ -31,7 +31,9 @@
*
* @opensearch.internal
*/
public class TransportRestoreRemoteStoreAction extends TransportMasterNodeAction<RestoreRemoteStoreRequest, RestoreRemoteStoreResponse> {
public class TransportRestoreRemoteStoreAction extends TransportClusterManagerNodeAction<
RestoreRemoteStoreRequest,
RestoreRemoteStoreResponse> {
private final RestoreService restoreService;

@Inject
Expand Down

0 comments on commit 4cda8e2

Please sign in to comment.