提交更新
This commit is contained in:
+7
-1
@@ -32,6 +32,10 @@ public class RustfsObjectStorageService {
|
||||
}
|
||||
|
||||
public String uploadText(String objectKey, String content) {
|
||||
return uploadText(objectKey, content, true);
|
||||
}
|
||||
|
||||
public String uploadText(String objectKey, String content, boolean verifyAfterUpload) {
|
||||
if (!isConfigured()) {
|
||||
throw new IllegalStateException("transient storage is not configured");
|
||||
}
|
||||
@@ -46,7 +50,9 @@ public class RustfsObjectStorageService {
|
||||
.stream(stream, bytes.length, -1)
|
||||
.contentType("application/json")
|
||||
.build());
|
||||
verifyObjectVisible(objectKey);
|
||||
if (verifyAfterUpload) {
|
||||
verifyObjectVisible(objectKey);
|
||||
}
|
||||
return objectKey;
|
||||
} catch (Exception ex) {
|
||||
last = ex;
|
||||
|
||||
Reference in New Issue
Block a user