|
Some checks are pending
CI / vet-build-test (push) Waiting to run
Content-addressed snapshots can appear as prunable in two shares simultaneously. The old inline manifestChunks call inside the prune loop read the blob after the first share's iteration had already deleted it, returning ErrNotFound → nil hashes → DeleteSnapshot decremented nothing → chunk stayed at refcount 1 and leaked forever. Pre-enumerate all chunk lists once before the deletion loop so both (share,id) decrements always fire with the correct hash list. No change to dry-run path: it never deletes blobs so ErrNotFound cannot occur there. |
||
|---|---|---|
| .. | ||
| fsck_share_test.go | ||
| fsck_test.go | ||
| gc_crossshare_test.go | ||
| gc_test.go | ||
| isloopback_test.go | ||
| lock_other.go | ||
| lock_test.go | ||
| lock_unix.go | ||
| main.go | ||