Internal: fixed wrong version check s/onOrBefore/before in TransportShardSingleOperationAction

relates to #7223
This commit is contained in:
javanna 2014-08-14 14:18:36 +02:00 committed by Luca Cavanna
parent f4a7793f89
commit 084793fca7
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ public abstract class TransportShardSingleOperationAction<Request extends Single
@Override @Override
public void writeTo(StreamOutput out) throws IOException { public void writeTo(StreamOutput out) throws IOException {
super.writeTo(out); super.writeTo(out);
if (out.getVersion().onOrBefore(Version.V_1_4_0)) { if (out.getVersion().before(Version.V_1_4_0)) {
//older nodes expect the concrete index as part of the request //older nodes expect the concrete index as part of the request
request.index(shardId.getIndex()); request.index(shardId.getIndex());
} }