aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume_checking.go
diff options
context:
space:
mode:
authorWine93 <wine93.info@gmail.com>2019-04-30 03:22:19 +0000
committerWine93 <wine93.info@gmail.com>2019-04-30 03:22:19 +0000
commit32f93fb09e76cc89c14b33bb049f8427f99baa9e (patch)
treeb404567dcb1812b49d46c3cc56bedbb7512fcc23 /weed/storage/volume_checking.go
parent82e06a780bb12adc47d6036067164c2fd02a25c4 (diff)
downloadseaweedfs-32f93fb09e76cc89c14b33bb049f8427f99baa9e.tar.xz
seaweedfs-32f93fb09e76cc89c14b33bb049f8427f99baa9e.zip
style: go fmt for all
Diffstat (limited to 'weed/storage/volume_checking.go')
-rw-r--r--weed/storage/volume_checking.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/volume_checking.go b/weed/storage/volume_checking.go
index 980656823..7bb998fa6 100644
--- a/weed/storage/volume_checking.go
+++ b/weed/storage/volume_checking.go
@@ -15,7 +15,7 @@ func CheckVolumeDataIntegrity(v *Volume, indexFile *os.File) (lastAppendAtNs uin
return 0, fmt.Errorf("verifyIndexFileIntegrity %s failed: %v", indexFile.Name(), e)
}
if indexSize == 0 {
- return 0,nil
+ return 0, nil
}
var lastIdxEntry []byte
if lastIdxEntry, e = readIndexEntryAtOffset(indexFile, indexSize-NeedleMapEntrySize); e != nil {
@@ -23,7 +23,7 @@ func CheckVolumeDataIntegrity(v *Volume, indexFile *os.File) (lastAppendAtNs uin
}
key, offset, size := IdxFileEntry(lastIdxEntry)
if offset.IsZero() {
- return 0,nil
+ return 0, nil
}
if size == TombstoneFileSize {
size = 0