Browse Source

Java client: fix passing replication value

pull/2078/head
Chris Lu 4 years ago
parent
commit
2d237f7b50
  1. 2
      other/java/client/src/main/java/seaweedfs/client/SeaweedOutputStream.java

2
other/java/client/src/main/java/seaweedfs/client/SeaweedOutputStream.java

@ -39,7 +39,7 @@ public class SeaweedOutputStream extends OutputStream {
} }
public SeaweedOutputStream(FilerClient filerClient, final String fullpath, final String replication) { public SeaweedOutputStream(FilerClient filerClient, final String fullpath, final String replication) {
this(filerClient, fullpath, null, 0, 8 * 1024 * 1024, "000");
this(filerClient, fullpath, null, 0, 8 * 1024 * 1024, replication);
} }
public SeaweedOutputStream(FilerClient filerClient, final String path, FilerProto.Entry.Builder entry, public SeaweedOutputStream(FilerClient filerClient, final String path, FilerProto.Entry.Builder entry,

Loading…
Cancel
Save