HCFS: bug fix for listEntries

fix https://github.com/chrislusf/seaweedfs/issues/797
This commit is contained in:
Chris Lu 2018-12-18 20:22:51 -08:00
parent e716ec9908
commit 2c72447078
2 changed files with 9 additions and 0 deletions

View file

@ -67,6 +67,14 @@
</extension>
</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>

View file

@ -150,6 +150,7 @@ public class FilerClient {
limit -= nSize;
lastFileName = t.get(nSize - 1).getName();
}
results.addAll(t);
if (t.size() < 1024) {
break;
}