File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/main/java/com/qiniu/storage Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -335,13 +335,13 @@ private List<String> allHosts() {
335
335
336
336
private List <String > allSrcHosts () {
337
337
List <String > hosts = new ArrayList <>();
338
- if (acc != null ) {
339
- List <String > mainHosts = acc .get ("main" );
338
+ if (src != null ) {
339
+ List <String > mainHosts = src .get ("main" );
340
340
if (mainHosts != null && mainHosts .size () > 0 ) {
341
341
hosts .addAll (mainHosts );
342
342
}
343
343
344
- List <String > backupHosts = acc .get ("backup" );
344
+ List <String > backupHosts = src .get ("backup" );
345
345
if (backupHosts != null && backupHosts .size () > 0 ) {
346
346
hosts .addAll (backupHosts );
347
347
}
@@ -351,13 +351,13 @@ private List<String> allSrcHosts() {
351
351
352
352
private List <String > allAccHosts () {
353
353
List <String > hosts = new ArrayList <>();
354
- if (src != null ) {
355
- List <String > mainHosts = src .get ("main" );
354
+ if (acc != null ) {
355
+ List <String > mainHosts = acc .get ("main" );
356
356
if (mainHosts != null && mainHosts .size () > 0 ) {
357
357
hosts .addAll (mainHosts );
358
358
}
359
359
360
- List <String > backupHosts = src .get ("backup" );
360
+ List <String > backupHosts = acc .get ("backup" );
361
361
if (backupHosts != null && backupHosts .size () > 0 ) {
362
362
hosts .addAll (backupHosts );
363
363
}
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ abstract class ResumeUploadSource {
28
28
29
29
ResumeUploadSource (Configuration config , String recordKey ) {
30
30
this .config = config ;
31
+ this .resumableUploadAPIVersion = config .resumableUploadAPIVersion ;
31
32
this .blockSize = getBlockSize (config );
32
33
this .recordKey = recordKey ;
33
- this .resumableUploadAPIVersion = config .resumableUploadAPIVersion ;
34
34
}
35
35
36
36
// 所有块数据是否 正在上传 或者 已上传,为 true 则说明没有需要上传的数据块
You can’t perform that action at this time.
0 commit comments