This commit is contained in:
Alex Yatskov 2015-05-28 14:13:59 +09:00
parent 2903a5a17f
commit dcec6402c4
2 changed files with 2 additions and 3 deletions

View File

@ -94,7 +94,7 @@ func (this *database) buildVersions(base string, names []string) ([]*version, er
return nil, err
}
ver, err := newVersion(path.Join(base, name), timestamp, this, parent, nil)
ver, err := newVersion(path.Join(base, name), timestamp, this, parent)
if err != nil {
return nil, err
}

View File

@ -46,7 +46,7 @@ type InodeAllocator interface {
AllocInode() uint64
}
func newVersion(base string, timestamp time.Time, allocator InodeAllocator, parent, terminus *version) (*version, error) {
func newVersion(base string, timestamp time.Time, allocator InodeAllocator, parent *version) (*version, error) {
meta, err := newVersionMetadata(filepath.Join(base, "meta.json"))
if err != nil {
return nil, err
@ -55,7 +55,6 @@ func newVersion(base string, timestamp time.Time, allocator InodeAllocator, pare
ver := &version{
base: base,
parent: parent,
terminus: terminus,
timestamp: timestamp,
meta: meta,
inodeAloc: allocator}