Skip to content

Commit

Permalink
Add else block on remoteSegmentStats serialization
Browse files Browse the repository at this point in the history
Signed-off-by: Shourya Dutta Biswas <[email protected]>
  • Loading branch information
shourya035 committed Aug 8, 2023
1 parent ce2bb70 commit 33b4f86
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ public SegmentsStats(StreamInput in) throws IOException {
fileSizes = in.readMap(StreamInput::readString, StreamInput::readLong);
if (in.getVersion().onOrAfter(Version.V_2_10_0)) {
remoteSegmentStats = in.readOptionalWriteable(RemoteSegmentStats::new);
} else {
remoteSegmentStats = null;
}
}

Expand Down

0 comments on commit 33b4f86

Please sign in to comment.