parent
263349f628
commit
067fbb8ecd
|
@ -25,8 +25,8 @@
|
|||
---
|
||||
"Flush stats":
|
||||
- skip:
|
||||
version: " - 6.99.99"
|
||||
reason: periodic flush stats is introduced in 7.0
|
||||
version: " - 6.2.99"
|
||||
reason: periodic flush stats is introduced in 6.3.0
|
||||
- do:
|
||||
indices.create:
|
||||
index: test
|
||||
|
|
|
@ -114,7 +114,7 @@ public class FlushStats implements Streamable, ToXContentFragment {
|
|||
public void readFrom(StreamInput in) throws IOException {
|
||||
total = in.readVLong();
|
||||
totalTimeInMillis = in.readVLong();
|
||||
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
||||
if (in.getVersion().onOrAfter(Version.V_6_3_0)) {
|
||||
periodic = in.readVLong();
|
||||
}
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ public class FlushStats implements Streamable, ToXContentFragment {
|
|||
public void writeTo(StreamOutput out) throws IOException {
|
||||
out.writeVLong(total);
|
||||
out.writeVLong(totalTimeInMillis);
|
||||
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
|
||||
if (out.getVersion().onOrAfter(Version.V_6_3_0)) {
|
||||
out.writeVLong(periodic);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue