diff options
| author | Chris Lu <chris.lu@gmail.com> | 2017-01-06 10:22:20 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2017-01-06 10:22:20 -0800 |
| commit | 13e7069eb9cd72f94e72acb8fbbc9dd0307da703 (patch) | |
| tree | a093cbe0df8c2d06ea335e616bb5246f9c45ea04 /weed/storage/volume_sync.go | |
| parent | 54dd925283f443b09db77717c86eea5bf0f9d740 (diff) | |
| download | seaweedfs-13e7069eb9cd72f94e72acb8fbbc9dd0307da703.tar.xz seaweedfs-13e7069eb9cd72f94e72acb8fbbc9dd0307da703.zip | |
keep track of total data file size
Diffstat (limited to 'weed/storage/volume_sync.go')
| -rw-r--r-- | weed/storage/volume_sync.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/volume_sync.go b/weed/storage/volume_sync.go index 7448b856f..23d8db510 100644 --- a/weed/storage/volume_sync.go +++ b/weed/storage/volume_sync.go @@ -148,7 +148,7 @@ func fetchVolumeFileEntries(volumeServer string, vid VolumeId) (m CompactMap, la total := 0 err = operation.GetVolumeIdxEntries(volumeServer, vid.String(), func(key uint64, offset, size uint32) { // println("remote key", key, "offset", offset*NeedlePaddingSize, "size", size) - if offset != 0 && size != 0 { + if offset > 0 && size != TombstoneFileSize { m.Set(Key(key), offset, size) } else { m.Delete(Key(key)) |
