pass volume version when creating a volume
This commit is contained in:
@@ -175,7 +175,7 @@ func (v *Volume) CommitCompact() error {
|
||||
os.RemoveAll(v.FileName(".ldb"))
|
||||
|
||||
glog.V(3).Infof("Loading volume %d commit file...", v.Id)
|
||||
if e = v.load(true, false, v.needleMapKind, 0); e != nil {
|
||||
if e = v.load(true, false, v.needleMapKind, 0, v.Version()); e != nil {
|
||||
return e
|
||||
}
|
||||
glog.V(3).Infof("Finish committing volume %d", v.Id)
|
||||
|
||||
Reference in New Issue
Block a user