Skip to content

Commit

Permalink
add back min_version for now
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
  • Loading branch information
nknize committed Oct 12, 2022
1 parent 8eec8d1 commit f6b96e2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ public List<IndexId> resolveNewIndices(List<String> indicesToResolve, Map<String
private static final String UUID = "uuid";
private static final String STATE = "state";
private static final String VERSION = "version";
private static final String MIN_VERSION = "min_version";

/**
* Writes the snapshots metadata and the related indices metadata to x-content.
Expand Down Expand Up @@ -626,6 +627,11 @@ public static RepositoryData snapshotsFromXContent(XContentParser parser, long g
XContentParserUtils.ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.nextToken(), parser);
indexMetaIdentifiers = parser.mapStrings();
break;
case MIN_VERSION:
// ignore min_version
// todo: remove in next version
parser.nextToken();
break;
default:
XContentParserUtils.throwUnknownField(field, parser.getTokenLocation());
}
Expand Down

0 comments on commit f6b96e2

Please sign in to comment.