|
@@ -809,7 +809,7 @@ func (db *Database) verifyIntegrity() {
|
|
|
db.accumulate(child, reachable)
|
|
db.accumulate(child, reachable)
|
|
|
}
|
|
}
|
|
|
// Find any unreachable but cached nodes
|
|
// Find any unreachable but cached nodes
|
|
|
- unreachable := []string{}
|
|
|
|
|
|
|
+ var unreachable []string
|
|
|
for hash, node := range db.dirties {
|
|
for hash, node := range db.dirties {
|
|
|
if _, ok := reachable[hash]; !ok {
|
|
if _, ok := reachable[hash]; !ok {
|
|
|
unreachable = append(unreachable, fmt.Sprintf("%x: {Node: %v, Parents: %d, Prev: %x, Next: %x}",
|
|
unreachable = append(unreachable, fmt.Sprintf("%x: {Node: %v, Parents: %d, Prev: %x, Next: %x}",
|