Skip to content

Commit 54b1fed

Browse files
author
Christoph Büscher
committed
Corrected ByteSizeValue bwc serialization version after backport to 6.x
1 parent e9160fc commit 54b1fed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/elasticsearch/common/unit/ByteSizeValue.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class ByteSizeValue implements Writeable, Comparable<ByteSizeValue> {
3939
private final ByteSizeUnit unit;
4040

4141
public ByteSizeValue(StreamInput in) throws IOException {
42-
if (in.getVersion().before(Version.V_7_0_0_alpha1)) {
42+
if (in.getVersion().before(Version.V_6_2_0)) {
4343
size = in.readVLong();
4444
unit = ByteSizeUnit.BYTES;
4545
} else {
@@ -50,7 +50,7 @@ public ByteSizeValue(StreamInput in) throws IOException {
5050

5151
@Override
5252
public void writeTo(StreamOutput out) throws IOException {
53-
if (out.getVersion().before(Version.V_7_0_0_alpha1)) {
53+
if (out.getVersion().before(Version.V_6_2_0)) {
5454
out.writeVLong(getBytes());
5555
} else {
5656
out.writeZLong(size);

0 commit comments

Comments
 (0)