fix silly serialization mistake in DiscoveryNode
This commit is contained in:
parent
f7becf1f53
commit
36f446759f
|
@ -113,7 +113,7 @@ public class DiscoveryNode implements Writeable<DiscoveryNode>, ToXContent {
|
|||
if (ordinal < 0 || ordinal >= Role.values().length) {
|
||||
throw new IOException("Unknown Role ordinal [" + ordinal + "]");
|
||||
}
|
||||
this.roles.add(Role.values()[in.readVInt()]);
|
||||
this.roles.add(Role.values()[ordinal]);
|
||||
}
|
||||
this.version = Version.readVersion(in);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue