19414: Fix concurrent map read/write.
authorTom Clegg <tom@curii.com>
Tue, 23 Aug 2022 15:02:04 +0000 (11:02 -0400)
committerTom Clegg <tom@curii.com>
Thu, 25 Aug 2022 13:35:20 +0000 (09:35 -0400)
commitaa2883fbf8d6d9fdec74f72666ac25fe657e68b1
treece0e483d44a42d8b56dbbae3704b47765164de4d
parente8a8cadb6035fa8c03589b9ab5ac1a382407c6a1
19414: Fix concurrent map read/write.

Occurred when a block was referenced by a collection but not returned
by any keepstore index, and NumCPU > 2.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
services/keep-balance/block_state.go
services/keep-balance/block_state_test.go