Fix GetIndexTemlatesRequest if serialized with includeAll and a old ES version

This commit is contained in:
Simon Willnauer 2013-10-09 18:24:59 +02:00
parent 4fa8f6f61f
commit a15f149dc6
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ public class GetIndexTemplatesRequest extends MasterNodeOperationRequest<GetInde
if (out.getVersion().onOrAfter(Version.V_0_90_4)) {
out.writeStringArray(names);
} else {
out.writeString(names[0]);
out.writeString(names.length == 0 ? "*" : names[0]);
}
}
}