ipfs-cluster/pintracker
Hector Sanjuan edfcfa3fb0 Fix #1360: Efficient pinset status with filters
This commit modifies the pintracker StatusAll call to take a status filter.

This allows to skip a PinLs call to ipfs when checking status for items that
are queued, pinning, unpinning or in error. Those status come directly from
the operation tracker. This should result in a significant performance
increase for those calls, particularly in nodes with several hundred thousand
pins and more, where the call to IPFS is very expensive.

A new TrackerStatusUnexpectedlyUnpinned status has been introduce to
differentiate between pin errors (tracked by the operation tracker) and "lost"
items (which before were pin errors too). This new status is handled by the
Recover() operation as before.
2021-07-06 11:34:19 +02:00
..
optracker Pintracker: use cid.Cid as map keys. (#1322) 2021-03-16 15:47:44 +01:00
stateless Fix #1360: Efficient pinset status with filters 2021-07-06 11:34:19 +02:00
pintracker_test.go Fix #1360: Efficient pinset status with filters 2021-07-06 11:34:19 +02:00