Browse Source

minor

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

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

@ -46,7 +46,7 @@ public class SeaweedWrite {
FilerProto.AssignVolumeResponse response = filerClient.getBlockingStub().assignVolume(
FilerProto.AssignVolumeRequest.newBuilder()
.setCollection(filerClient.getCollection())
.setReplication(replication == null ? filerClient.getReplication() : replication)
.setReplication(Strings.isNullOrEmpty(replication) ? filerClient.getReplication() : replication)
.setDataCenter("")
.setTtlSec(0)
.setPath(path)

Loading…
Cancel
Save