Blobovnicza tree rebuild #812
1 changed files with 3 additions and 2 deletions
|
@ -134,7 +134,9 @@ func (b *Blobovniczas) iterateSorted(ctx context.Context, addr *oid.Address, cur
|
||||||
}
|
}
|
||||||
indices := indexSlice(levelWidth)
|
indices := indexSlice(levelWidth)
|
||||||
|
|
||||||
hrw.SortSliceByValue(indices, addressHash(addr, filepath.Join(curPath...)))
|
if !isLeafLevel {
|
||||||
|
hrw.SortSliceByValue(indices, addressHash(addr, filepath.Join(curPath...)))
|
||||||
|
}
|
||||||
|
|
||||||
exec := uint64(len(curPath)) == execDepth
|
exec := uint64(len(curPath)) == execDepth
|
||||||
|
|
||||||
|
@ -249,7 +251,6 @@ func (b *Blobovniczas) iterateSordedDBPathsInternal(ctx context.Context, path st
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(dbIdxs) > 0 {
|
if len(dbIdxs) > 0 {
|
||||||
hrw.SortSliceByValue(dbIdxs, addressHash(&addr, path))
|
|
||||||
for _, dbIdx := range dbIdxs {
|
for _, dbIdx := range dbIdxs {
|
||||||
dbPath := filepath.Join(path, u64ToHexStringExt(dbIdx))
|
dbPath := filepath.Join(path, u64ToHexStringExt(dbIdx))
|
||||||
stop, err := f(dbPath)
|
stop, err := f(dbPath)
|
||||||
|
|
Loading…
Reference in a new issue