aboutsummaryrefslogtreecommitdiff
path: root/unmaintained/fix_dat
diff options
context:
space:
mode:
authorbingoohuang <bingoo.huang@gmail.com>2019-01-17 09:17:19 +0800
committerbingoohuang <bingoo.huang@gmail.com>2019-01-17 09:17:19 +0800
commitab6be025d76748388ad3eea6fe6ca000db1c2435 (patch)
tree1be9b1b5e7f91693f4cabe3ae0d114cb7f7dced6 /unmaintained/fix_dat
parent6ddfaf33cba953b92a5e3383a15bf26ab1845dbc (diff)
downloadseaweedfs-ab6be025d76748388ad3eea6fe6ca000db1c2435.tar.xz
seaweedfs-ab6be025d76748388ad3eea6fe6ca000db1c2435.zip
go fmt and fix some typo
Diffstat (limited to 'unmaintained/fix_dat')
-rw-r--r--unmaintained/fix_dat/fix_dat.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/unmaintained/fix_dat/fix_dat.go b/unmaintained/fix_dat/fix_dat.go
index b26c85de6..9eb64b3b4 100644
--- a/unmaintained/fix_dat/fix_dat.go
+++ b/unmaintained/fix_dat/fix_dat.go
@@ -77,13 +77,13 @@ func iterateEntries(datFile, idxFile *os.File, visitNeedle func(n *storage.Needl
readerOffset += int64(count)
// start to read dat file
- superblock, err := storage.ReadSuperBlock(datFile)
+ superBlock, err := storage.ReadSuperBlock(datFile)
if err != nil {
fmt.Printf("cannot read dat file super block: %v", err)
return
}
- offset := int64(superblock.BlockSize())
- version := superblock.Version()
+ offset := int64(superBlock.BlockSize())
+ version := superBlock.Version()
n, rest, err := storage.ReadNeedleHeader(datFile, version, offset)
if err != nil {
fmt.Printf("cannot read needle header: %v", err)