File tree Expand file tree Collapse file tree 2 files changed +4
-39
lines changed
rest-api-spec/src/main/resources/rest-api-spec/test/remote_store.restore
server/src/main/java/org/opensearch/action Expand file tree Collapse file tree 2 files changed +4
-39
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 269
269
import org .opensearch .common .settings .IndexScopedSettings ;
270
270
import org .opensearch .common .settings .Settings ;
271
271
import org .opensearch .common .settings .SettingsFilter ;
272
+ import org .opensearch .common .util .FeatureFlags ;
272
273
import org .opensearch .index .seqno .RetentionLeaseActions ;
273
274
import org .opensearch .indices .SystemIndices ;
274
275
import org .opensearch .indices .breaker .CircuitBreakerService ;
@@ -861,7 +862,9 @@ public void initRestHandlers(Supplier<DiscoveryNodes> nodesInCluster) {
861
862
registerHandler .accept (new RestCatAction (catActions ));
862
863
863
864
// Remote Store APIs
864
- registerHandler .accept (new RestRestoreRemoteStoreAction ());
865
+ if (FeatureFlags .isEnabled (FeatureFlags .REMOTE_STORE )) {
866
+ registerHandler .accept (new RestRestoreRemoteStoreAction ());
867
+ }
865
868
}
866
869
867
870
@ Override
You can’t perform that action at this time.
0 commit comments