Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andrross committed Sep 29, 2023
1 parent 0a95bed commit 3b4872d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4886,9 +4886,10 @@ private String copySegmentFiles(
// WIP: Single segment download logic
final Path indexPath = store.shardPath() == null ? null : store.shardPath().resolveIndex();
for (String segment: toDownloadSegments){
final PlainActionFuture<String> segmentListener = PlainActionFuture.newFuture();
sourceRemoteDirectory.copyTo(segment, storeDirectory, indexPath, segmentListener);
segmentListener.actionGet();
// final PlainActionFuture<String> segmentListener = PlainActionFuture.newFuture();
// sourceRemoteDirectory.copyTo(segment, storeDirectory, indexPath, segmentListener);
// segmentListener.actionGet();
storeDirectory.copyFrom(sourceRemoteDirectory, segment, segment, IOContext.DEFAULT);
if (targetRemoteDirectory != null) {
targetRemoteDirectory.copyFrom(storeDirectory, segment, segment, IOContext.DEFAULT);
}
Expand Down

0 comments on commit 3b4872d

Please sign in to comment.