mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 18:07:23 +08:00
prepare for flexible super block
This commit is contained in:
@@ -189,7 +189,7 @@ func ScanVolumeFile(dirname string, collection string, id VolumeId,
|
||||
|
||||
version := v.Version()
|
||||
|
||||
offset := int64(SuperBlockSize)
|
||||
offset := int64(v.SuperBlock.BlockSize())
|
||||
n, rest, e := ReadNeedleHeader(v.dataFile, version, offset)
|
||||
if e != nil {
|
||||
err = fmt.Errorf("cannot read needle header: %v", e)
|
||||
|
Reference in New Issue
Block a user