File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
api/src/main/java/io/minio Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -583,20 +583,13 @@ protected CompletableFuture<Integer> calculatePartCount(List<SourceObject> sourc
583583 sources .set (index , source );
584584 }
585585
586- List <String > keys = new ArrayList <>();
586+ List <String > keys = new ArrayList <>(Arrays . asList ( "source" , source . bucket () + "/" + source . object ()) );
587587 if (source .versionId () != null && !source .versionId ().isEmpty ()) {
588588 keys .add ("version_id=" + source .versionId ());
589589 }
590590 if (source .offset () != null ) keys .add ("offset=" + source .offset ());
591591 if (source .length () != null ) keys .add ("length=" + source .length ());
592592 String sourceMessage = String .join (" " , keys );
593- sourceMessage =
594- "source "
595- + source .bucket ()
596- + "/"
597- + source .object ()
598- + (sourceMessage .isEmpty () ? "" : " " )
599- + sourceMessage ;
600593 if ((source .offset () != null ? source .offset () : 0 ) >= source .objectSize ()) {
601594 throw new IllegalArgumentException (
602595 "source "
You can’t perform that action at this time.
0 commit comments