Cleanup
This commit is contained in:
parent
2903a5a17f
commit
dcec6402c4
@ -94,7 +94,7 @@ func (this *database) buildVersions(base string, names []string) ([]*version, er
|
|||||||
return nil, err
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ type InodeAllocator interface {
|
|||||||
AllocInode() uint64
|
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"))
|
meta, err := newVersionMetadata(filepath.Join(base, "meta.json"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -55,7 +55,6 @@ func newVersion(base string, timestamp time.Time, allocator InodeAllocator, pare
|
|||||||
ver := &version{
|
ver := &version{
|
||||||
base: base,
|
base: base,
|
||||||
parent: parent,
|
parent: parent,
|
||||||
terminus: terminus,
|
|
||||||
timestamp: timestamp,
|
timestamp: timestamp,
|
||||||
meta: meta,
|
meta: meta,
|
||||||
inodeAloc: allocator}
|
inodeAloc: allocator}
|
||||||
|
Loading…
Reference in New Issue
Block a user