diff options
Diffstat (limited to 'weed/storage/disk_location.go')
| -rw-r--r-- | weed/storage/disk_location.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index e7604a734..039b4f3b9 100644 --- a/weed/storage/disk_location.go +++ b/weed/storage/disk_location.go @@ -40,7 +40,12 @@ func (l *DiskLocation) loadExistingVolume(dir os.FileInfo, needleMapKind NeedleM mutex.Lock() l.volumes[vid] = v mutex.Unlock() - glog.V(0).Infof("data file %s, replicaPlacement=%s v=%d size=%d ttl=%s", l.Directory+"/"+name, v.ReplicaPlacement, v.Version(), v.Size(), v.Ttl.String()) + glog.V(0).Infof("data file %s, replicaPlacement=%s v=%d size=%d ttl=%s", + l.Directory+"/"+name, v.ReplicaPlacement, v.Version(), v.Size(), v.Ttl.String()) + if v.Size() != v.dataFileSize { + glog.V(0).Infof("data file %s, size=%d expected=%d", + l.Directory+"/"+name, v.Size(), v.dataFileSize) + } } else { glog.V(0).Infof("new volume %s error %s", name, e) } |
