[ML] Include MlMetadata in all xcontent contexts.

Original commit: elastic/x-pack-elasticsearch@e870b5bf6d
This commit is contained in:
Martijn van Groningen 2017-03-23 16:10:13 +01:00
parent dde0570296
commit bb9befcdcb
1 changed files with 1 additions and 3 deletions

View File

@ -97,9 +97,7 @@ public class MlMetadata implements MetaData.Custom {
@Override
public EnumSet<MetaData.XContentContext> context() {
// NORELEASE: Also include SNAPSHOT, but then we need to split the allocations from here and add them
// as ClusterState.Custom metadata, because only the job definitions should be stored in snapshots.
return MetaData.API_AND_GATEWAY;
return MetaData.ALL_CONTEXTS;
}
@Override