Skip to content

Commit

Permalink
Ensure createRepairSegmentFromRow storage function hydrates the hostI…
Browse files Browse the repository at this point in the history
…D field in RepairSegment.
  • Loading branch information
Miles-Garnsey committed Nov 14, 2022
1 parent 04f2d5d commit e8a2d04
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,10 @@ private static RepairSegment createRepairSegmentFromRow(Row segmentRow) {
builder = builder.withReplicas(segmentRow.getMap("replicas", String.class, String.class));
}

if (null != segmentRow.getUUID("host_id")) {
builder = builder.withHostID(segmentRow.getUUID("host_id"));
}

return builder.withId(segmentRow.getUUID("segment_id")).build();
}

Expand Down

0 comments on commit e8a2d04

Please sign in to comment.