diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-05-21 22:41:20 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-05-21 22:41:20 -0700 |
| commit | 17ac1290c0087a8264827e2ab1e9662f3ab4d257 (patch) | |
| tree | 19a3446d5da4b5d6eeeac8a635b060a219ed8995 /weed/storage/volume_checking.go | |
| parent | 54b835e1ae4192e785c1ae9abbeefb86ba39ad4d (diff) | |
| download | seaweedfs-17ac1290c0087a8264827e2ab1e9662f3ab4d257.tar.xz seaweedfs-17ac1290c0087a8264827e2ab1e9662f3ab4d257.zip | |
volume: load ec shards during heartbeats to master
Diffstat (limited to 'weed/storage/volume_checking.go')
| -rw-r--r-- | weed/storage/volume_checking.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/storage/volume_checking.go b/weed/storage/volume_checking.go index 7bb998fa6..8f930546f 100644 --- a/weed/storage/volume_checking.go +++ b/weed/storage/volume_checking.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "github.com/chrislusf/seaweedfs/weed/storage/idx" "github.com/chrislusf/seaweedfs/weed/storage/needle" . "github.com/chrislusf/seaweedfs/weed/storage/types" "github.com/chrislusf/seaweedfs/weed/util" @@ -21,7 +22,7 @@ func CheckVolumeDataIntegrity(v *Volume, indexFile *os.File) (lastAppendAtNs uin if lastIdxEntry, e = readIndexEntryAtOffset(indexFile, indexSize-NeedleMapEntrySize); e != nil { return 0, fmt.Errorf("readLastIndexEntry %s failed: %v", indexFile.Name(), e) } - key, offset, size := IdxFileEntry(lastIdxEntry) + key, offset, size := idx.IdxFileEntry(lastIdxEntry) if offset.IsZero() { return 0, nil } |
