diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-05-21 01:50:20 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-05-21 01:50:20 -0700 |
| commit | 085a61cb8fdfc5d3f80de2768f5fd3081b873d64 (patch) | |
| tree | abeab6a742965e413984505e874f0a8c3c82e543 /other/java | |
| parent | 4d0b894d37870351052c343f41dca18acfd54194 (diff) | |
| download | seaweedfs-085a61cb8fdfc5d3f80de2768f5fd3081b873d64.tar.xz seaweedfs-085a61cb8fdfc5d3f80de2768f5fd3081b873d64.zip | |
minor
Diffstat (limited to 'other/java')
| -rw-r--r-- | other/java/client/src/main/java/seaweedfs/client/SeaweedWrite.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/other/java/client/src/main/java/seaweedfs/client/SeaweedWrite.java b/other/java/client/src/main/java/seaweedfs/client/SeaweedWrite.java index 75d2a0e7e..3f9d79b99 100644 --- a/other/java/client/src/main/java/seaweedfs/client/SeaweedWrite.java +++ b/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) |
