mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-28 07:50:44 +01:00
Java: SeaweedOutputStream add replication option
This commit is contained in:
1 parent
82c167aaca
commit
ce416d765f
1 file changed
+5
@@ -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