Skip to content

Commit

Permalink
Add _remotestore/_restore rest handle registration behind feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachin Kale committed Aug 3, 2022
1 parent 60e3347 commit 4edc1e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 39 deletions.

This file was deleted.

5 changes: 4 additions & 1 deletion server/src/main/java/org/opensearch/action/ActionModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@
import org.opensearch.common.settings.IndexScopedSettings;
import org.opensearch.common.settings.Settings;
import org.opensearch.common.settings.SettingsFilter;
import org.opensearch.common.util.FeatureFlags;
import org.opensearch.index.seqno.RetentionLeaseActions;
import org.opensearch.indices.SystemIndices;
import org.opensearch.indices.breaker.CircuitBreakerService;
Expand Down Expand Up @@ -858,7 +859,9 @@ public void initRestHandlers(Supplier<DiscoveryNodes> nodesInCluster) {
registerHandler.accept(new RestCatAction(catActions));

// Remote Store APIs
registerHandler.accept(new RestRestoreRemoteStoreAction());
if (FeatureFlags.isEnabled(FeatureFlags.REMOTE_STORE)) {
registerHandler.accept(new RestRestoreRemoteStoreAction());
}
}

@Override
Expand Down

0 comments on commit 4edc1e0

Please sign in to comment.