ipfs-cluster/pintracker/maptracker
Hector Sanjuan 73aabfa8ec Fix #408: Race condition when StateSync runs
When StateSync() runs and triggers Untrack() on items
that have just been removed from the state but on which
Untrack() is underway, the operation tracker would be
reset to phase queued and in some cases stay so.

Also happened for Track()

This caused failures of TestClustersPin as SyncStatus()
is triggered regularly while Tracks() and Untracks() happen.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-05-12 10:49:45 +02:00
..
config_test.go Pintracker: remove timeouts 2018-05-02 15:24:26 +02:00
config.go Pintracker: remove timeouts 2018-05-02 15:24:26 +02:00
maptracker_test.go finish maptracker tests 2018-05-04 21:18:30 +10:00
maptracker.go Fix #408: Race condition when StateSync runs 2018-05-12 10:49:45 +02:00
operationtracker_test.go rename operationCtx functions 2018-05-04 21:18:12 +10:00
operationtracker.go rename operationCtx functions 2018-05-04 21:18:12 +10:00
operationtype_string.go Pintracker: rename and fmting. 2018-05-02 15:24:26 +02:00
phase_string.go pintracker: add filtering of operationCtxs as they 2018-05-02 15:24:26 +02:00