Chris Lu
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
weed/storage/volume.go
|
@ -61,7 +61,7 @@ func (v *Volume) Size() int64 { |
|
|
return stat.Size() |
|
|
return stat.Size() |
|
|
} |
|
|
} |
|
|
glog.V(0).Infof("Failed to read file size %s %v", v.dataFile.Name(), e) |
|
|
glog.V(0).Infof("Failed to read file size %s %v", v.dataFile.Name(), e) |
|
|
return -1 |
|
|
|
|
|
|
|
|
return 0 // -1 causes integer overflow and the volume to become unwritable.
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Close cleanly shuts down this volume
|
|
|
// Close cleanly shuts down this volume
|
|
|