From 9ad412937cd3c440ba0eea54595e2f7d9d2639fc Mon Sep 17 00:00:00 2001 From: sahil buddharaju Date: Fri, 30 Jun 2023 14:18:21 -0700 Subject: [PATCH] Changed version --- .../java/org/opensearch/index/search/stats/SearchStats.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/index/search/stats/SearchStats.java b/server/src/main/java/org/opensearch/index/search/stats/SearchStats.java index efc8156425913..d730f206d19e8 100644 --- a/server/src/main/java/org/opensearch/index/search/stats/SearchStats.java +++ b/server/src/main/java/org/opensearch/index/search/stats/SearchStats.java @@ -179,7 +179,7 @@ private Stats(StreamInput in) throws IOException { pitCurrent = in.readVLong(); } - if (in.getVersion().onOrAfter(Version.V_2_0_0)) { + if (in.getVersion().onOrAfter(Version.V_3_0_0)) { this.coordinatorStatsLongHolder = new CoordinatorStatsLongHolder(); coordinatorStatsLongHolder.dfsPreQueryMetric = in.readVLong(); coordinatorStatsLongHolder.dfsPreQueryCurrent= in.readVLong(); @@ -353,7 +353,7 @@ public void writeTo(StreamOutput out) throws IOException { out.writeVLong(pitCurrent); } - if (out.getVersion().onOrAfter(Version.V_2_0_0)) { + if (out.getVersion().onOrAfter(Version.V_3_0_0)) { out.writeVLong(coordinatorStatsLongHolder.dfsPreQueryMetric); out.writeVLong(coordinatorStatsLongHolder.dfsPreQueryCurrent); out.writeVLong(coordinatorStatsLongHolder.dfsPreQueryTotal);