kubo/pin
Hector Sanjuan 9abb9923af Fix/GC: Do not recursively descend all internal pins
InternalPins() is a pinset composed by:

- Recursive pins CIDs
- Direct pins CIDs
- The empty node CID
- A root CID pointing to all above (and any of the subbuckets that may have been created)

It is only set during Flush/Load operations for the pinner.

Thus recursively exploring internal pins in order to decide which CIDs are safe
from GC only re-explores the recursive DAGs and should not be necessary.

Mind that, previously, the CidSet will correctly prune any already explored branches so
it did not have pernicious effects. But now it does.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-06-21 16:02:16 +02:00
..
gc Fix/GC: Do not recursively descend all internal pins 2018-06-21 16:02:16 +02:00
internal/pb make: rework makefiles for non-recursive make and add sharness coverage 2017-02-12 01:18:40 +01:00
pin_test.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
pin.go Feat: Arbitrary-depth recursive pin levels. 2018-06-21 14:35:42 +02:00
set_test.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00
set.go gx update go-log, sys, go-crypto 2018-06-08 22:36:24 -07:00