mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-18 03:58:32 +02:00
FUSE mount: fix file id written twice?
fix https://github.com/chrislusf/seaweedfs/issues/1373
This commit is contained in:
1 parent
212c64241b
commit
3cec4b3c49
3 files changed
+8
-3
No files matched your search
@@ -60,7 +60,7 @@ func (c *ChunkCache) doGetChunk(fileId string, chunkSize uint64) (data []byte) {
|
||||
|
||||
for _, diskCache := range c.diskCaches {
|
||||
data := diskCache.getChunk(fid.Key)
|
||||
if len(data) != 0 {
|
||||
if len(data) != 0 && len(data) >= int(chunkSize) {
|
||||
return data
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user