mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 11:47:56 +08:00
Java: SeaweedOutputStream add replication option
This commit is contained in:
@@ -34,6 +34,11 @@ public class SeaweedOutputStream extends OutputStream {
|
||||
private boolean shouldSaveMetadata = false;
|
||||
|
||||
public SeaweedOutputStream(FilerGrpcClient filerGrpcClient, final String fullpath) {
|
||||
this(filerGrpcClient, fullpath, "000");
|
||||
}
|
||||
|
||||
public SeaweedOutputStream(FilerGrpcClient filerGrpcClient, final String fullpath, final String replication) {
|
||||
this.replication = replication;
|
||||
this.filerGrpcClient = filerGrpcClient;
|
||||
this.path = fullpath;
|
||||
this.position = 0;
|
||||
|
Reference in New Issue
Block a user