From f60154f330a81354c433da37d612f235d1c0e4e9 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 28 Nov 2019 18:33:18 -0800 Subject: master load backend storage config from master.toml --- unmaintained/remove_duplicate_fids/remove_duplicate_fids.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unmaintained/remove_duplicate_fids/remove_duplicate_fids.go') diff --git a/unmaintained/remove_duplicate_fids/remove_duplicate_fids.go b/unmaintained/remove_duplicate_fids/remove_duplicate_fids.go index a162d1757..dfbb82049 100644 --- a/unmaintained/remove_duplicate_fids/remove_duplicate_fids.go +++ b/unmaintained/remove_duplicate_fids/remove_duplicate_fids.go @@ -29,7 +29,7 @@ type VolumeFileScanner4SeeDat struct { dir string hashes map[string]bool dat *os.File - datBackend backend.DataStorageBackend + datBackend backend.BackendStorageFile } func (scanner *VolumeFileScanner4SeeDat) VisitSuperBlock(superBlock storage.SuperBlock) error { -- cgit v1.2.3 From 09ca936c78c1044412f47dc06caff1bf08273e60 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 23 Dec 2019 12:48:20 -0800 Subject: shell: add ec.decode command --- unmaintained/remove_duplicate_fids/remove_duplicate_fids.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'unmaintained/remove_duplicate_fids/remove_duplicate_fids.go') diff --git a/unmaintained/remove_duplicate_fids/remove_duplicate_fids.go b/unmaintained/remove_duplicate_fids/remove_duplicate_fids.go index dfbb82049..9456e5ff0 100644 --- a/unmaintained/remove_duplicate_fids/remove_duplicate_fids.go +++ b/unmaintained/remove_duplicate_fids/remove_duplicate_fids.go @@ -10,6 +10,7 @@ import ( "github.com/chrislusf/seaweedfs/weed/storage" "github.com/chrislusf/seaweedfs/weed/storage/backend" "github.com/chrislusf/seaweedfs/weed/storage/needle" + "github.com/chrislusf/seaweedfs/weed/storage/super_block" ) var ( @@ -24,7 +25,7 @@ func Checksum(n *needle.Needle) string { type VolumeFileScanner4SeeDat struct { version needle.Version - block storage.SuperBlock + block super_block.SuperBlock dir string hashes map[string]bool @@ -32,7 +33,7 @@ type VolumeFileScanner4SeeDat struct { datBackend backend.BackendStorageFile } -func (scanner *VolumeFileScanner4SeeDat) VisitSuperBlock(superBlock storage.SuperBlock) error { +func (scanner *VolumeFileScanner4SeeDat) VisitSuperBlock(superBlock super_block.SuperBlock) error { scanner.version = superBlock.Version() scanner.block = superBlock return nil -- cgit v1.2.3 From b7bc08cf52fa8471c76310b04200abb5ee4bf531 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 28 Dec 2019 11:50:42 -0800 Subject: fix compilation --- unmaintained/remove_duplicate_fids/remove_duplicate_fids.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unmaintained/remove_duplicate_fids/remove_duplicate_fids.go') 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 -- cgit v1.2.3