aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-12-28 11:50:42 -0800
committerChris Lu <chris.lu@gmail.com>2019-12-28 11:50:42 -0800
commitb7bc08cf52fa8471c76310b04200abb5ee4bf531 (patch)
tree50df990da63601f46cc58900fc4949047f7a7bc6
parentf4a74e03d18d0102f3119702ee92e2c0d66e9a17 (diff)
downloadseaweedfs-b7bc08cf52fa8471c76310b04200abb5ee4bf531.tar.xz
seaweedfs-b7bc08cf52fa8471c76310b04200abb5ee4bf531.zip
fix compilation
-rw-r--r--unmaintained/fix_dat/fix_dat.go4
-rw-r--r--unmaintained/remove_duplicate_fids/remove_duplicate_fids.go2
-rw-r--r--unmaintained/see_dat/see_dat.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/unmaintained/fix_dat/fix_dat.go b/unmaintained/fix_dat/fix_dat.go
index 51417a9d2..d6110d870 100644
--- a/unmaintained/fix_dat/fix_dat.go
+++ b/unmaintained/fix_dat/fix_dat.go
@@ -67,7 +67,7 @@ func main() {
iterateEntries(datBackend, indexFile, func(n *needle.Needle, offset int64) {
fmt.Printf("needle id=%v name=%s size=%d dataSize=%d\n", n.Id, string(n.Name), n.Size, n.DataSize)
- _, s, _, e := n.Append(datBackend, superBlock.Version())
+ _, s, _, e := n.Append(datBackend, superBlock.Version)
fmt.Printf("size %d error %v\n", s, e)
})
@@ -87,7 +87,7 @@ func iterateEntries(datBackend backend.BackendStorageFile, idxFile *os.File, vis
return
}
offset := int64(superBlock.BlockSize())
- version := superBlock.Version()
+ version := superBlock.Version
n, _, rest, err := needle.ReadNeedleHeader(datBackend, version, offset)
if err != nil {
fmt.Printf("cannot read needle header: %v", err)
diff --git a/unmaintained/remove_duplicate_fids/remove_duplicate_fids.go b/unmaintained/remove_duplicate_fids/remove_duplicate_fids.go
index 9456e5ff0..84173a663 100644
--- a/unmaintained/remove_duplicate_fids/remove_duplicate_fids.go
+++ b/unmaintained/remove_duplicate_fids/remove_duplicate_fids.go
@@ -34,7 +34,7 @@ type VolumeFileScanner4SeeDat struct {
}
func (scanner *VolumeFileScanner4SeeDat) VisitSuperBlock(superBlock super_block.SuperBlock) error {
- scanner.version = superBlock.Version()
+ scanner.version = superBlock.Version
scanner.block = superBlock
return nil
diff --git a/unmaintained/see_dat/see_dat.go b/unmaintained/see_dat/see_dat.go
index e1920211e..efc58e751 100644
--- a/unmaintained/see_dat/see_dat.go
+++ b/unmaintained/see_dat/see_dat.go
@@ -21,7 +21,7 @@ type VolumeFileScanner4SeeDat struct {
}
func (scanner *VolumeFileScanner4SeeDat) VisitSuperBlock(superBlock super_block.SuperBlock) error {
- scanner.version = superBlock.Version()
+ scanner.version = superBlock.Version
return nil
}