Browse Source

adjust memory mapped file size

related to https://github.com/chrislusf/seaweedfs/pull/1087
pull/1125/head
Chris Lu 5 years ago
parent
commit
c6e8225a20
  1. 2
      weed/storage/backend/memory_map/memory_map_backend.go

2
weed/storage/backend/memory_map/memory_map_backend.go

@ -50,7 +50,7 @@ func (mmf *MemoryMappedFile) Close() error {
func (mmf *MemoryMappedFile) GetStat() (datSize int64, modTime time.Time, err error) {
stat, e := mmf.mm.File.Stat()
if e == nil {
return stat.Size(), stat.ModTime(), nil
return mmf.mm.End_of_file+1, stat.ModTime(), nil
}
return 0, time.Time{}, err
}

Loading…
Cancel
Save