|
|
@@ -27,7 +27,7 @@ public class SearchableSnapshotFeatureSetUsage extends XPackFeatureSet.Usage {
|
|
|
public SearchableSnapshotFeatureSetUsage(StreamInput input) throws IOException {
|
|
|
super(input);
|
|
|
numberOfSearchableSnapshotIndices = input.readVInt();
|
|
|
- if (input.getVersion().onOrAfter(Version.V_8_0_0)) {
|
|
|
+ if (input.getVersion().onOrAfter(Version.V_7_13_0)) {
|
|
|
numberOfFullCopySearchableSnapshotIndices = input.readVInt();
|
|
|
numberOfSharedCacheSearchableSnapshotIndices = input.readVInt();
|
|
|
} else {
|
|
|
@@ -45,7 +45,7 @@ public class SearchableSnapshotFeatureSetUsage extends XPackFeatureSet.Usage {
|
|
|
public void writeTo(StreamOutput out) throws IOException {
|
|
|
super.writeTo(out);
|
|
|
out.writeVInt(numberOfSearchableSnapshotIndices);
|
|
|
- if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
|
|
|
+ if (out.getVersion().onOrAfter(Version.V_7_13_0)) {
|
|
|
out.writeVInt(numberOfFullCopySearchableSnapshotIndices);
|
|
|
out.writeVInt(numberOfSharedCacheSearchableSnapshotIndices);
|
|
|
}
|