kopia lustrzana https://github.com/gaul/s3proxy
rodzic
73b0047a08
commit
11b8dbb193
|
@ -2283,7 +2283,8 @@ public class S3ProxyHandler {
|
||||||
|
|
||||||
final List<MultipartPart> parts = new ArrayList<>();
|
final List<MultipartPart> parts = new ArrayList<>();
|
||||||
String blobStoreType = getBlobStoreType(blobStore);
|
String blobStoreType = getBlobStoreType(blobStore);
|
||||||
if (blobStoreType.equals("azureblob")) {
|
if (blobStoreType.equals("azureblob") ||
|
||||||
|
blobStoreType.equals("azureblob-sdk")) {
|
||||||
// TODO: how to sanity check parts?
|
// TODO: how to sanity check parts?
|
||||||
for (MultipartPart part : blobStore.listMultipartUpload(mpu)) {
|
for (MultipartPart part : blobStore.listMultipartUpload(mpu)) {
|
||||||
parts.add(part);
|
parts.add(part);
|
||||||
|
@ -2461,7 +2462,9 @@ public class S3ProxyHandler {
|
||||||
new PutOptions());
|
new PutOptions());
|
||||||
|
|
||||||
List<MultipartPart> parts;
|
List<MultipartPart> parts;
|
||||||
if (getBlobStoreType(blobStore).equals("azureblob")) {
|
var blobStoreType = getBlobStoreType(blobStore);
|
||||||
|
if (blobStoreType.equals("azureblob") ||
|
||||||
|
blobStoreType.equals("azureblob-sdk")) {
|
||||||
// map Azure subparts back into S3 parts
|
// map Azure subparts back into S3 parts
|
||||||
SortedMap<Integer, Long> map = new TreeMap<>();
|
SortedMap<Integer, Long> map = new TreeMap<>();
|
||||||
for (MultipartPart part : blobStore.listMultipartUpload(mpu)) {
|
for (MultipartPart part : blobStore.listMultipartUpload(mpu)) {
|
||||||
|
|
Ładowanie…
Reference in New Issue