aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-12-18 20:22:51 -0800
committerChris Lu <chris.lu@gmail.com>2018-12-18 20:22:51 -0800
commit2c724470784e2426e84c5915c8811d870aabe777 (patch)
treeeeeee635f5e71b9d0910763ac9d9af79e66734c7
parente716ec99086f59937c2e6c70c90ecb523f49f1c1 (diff)
downloadseaweedfs-2c724470784e2426e84c5915c8811d870aabe777.tar.xz
seaweedfs-2c724470784e2426e84c5915c8811d870aabe777.zip
HCFS: bug fix for listEntries
fix https://github.com/chrislusf/seaweedfs/issues/797
-rw-r--r--other/java/client/pom.xml8
-rw-r--r--other/java/client/src/main/java/seaweedfs/client/FilerClient.java1
2 files changed, 9 insertions, 0 deletions
diff --git a/other/java/client/pom.xml b/other/java/client/pom.xml
index f8d98ea37..40e6a56bb 100644
--- a/other/java/client/pom.xml
+++ b/other/java/client/pom.xml
@@ -68,6 +68,14 @@
</extensions>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>7</source>
+ <target>7</target>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.1</version>
diff --git a/other/java/client/src/main/java/seaweedfs/client/FilerClient.java b/other/java/client/src/main/java/seaweedfs/client/FilerClient.java
index 3786e069c..63d0d8320 100644
--- a/other/java/client/src/main/java/seaweedfs/client/FilerClient.java
+++ b/other/java/client/src/main/java/seaweedfs/client/FilerClient.java
@@ -150,6 +150,7 @@ public class FilerClient {
limit -= nSize;
lastFileName = t.get(nSize - 1).getName();
}
+ results.addAll(t);
if (t.size() < 1024) {
break;
}