|
@ -83,6 +83,7 @@ func (v *Volume) load(alsoLoadIndex bool, createDatIfMissing bool, needleMapKind |
|
|
|
|
|
|
|
|
if alreadyHasSuperBlock { |
|
|
if alreadyHasSuperBlock { |
|
|
err = v.readSuperBlock() |
|
|
err = v.readSuperBlock() |
|
|
|
|
|
glog.V(0).Infof("readSuperBlock volume %d version %v", v.Id, v.SuperBlock.Version) |
|
|
} else { |
|
|
} else { |
|
|
if !v.SuperBlock.Initialized() { |
|
|
if !v.SuperBlock.Initialized() { |
|
|
return fmt.Errorf("volume %s not initialized", v.FileName(".dat")) |
|
|
return fmt.Errorf("volume %s not initialized", v.FileName(".dat")) |
|
|