mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
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…
x
Reference in New Issue
Block a user