Skip to content

Add a lock to guard concurrent map access in Renter.FileList

Christopher Schinnerl requested to merge mtlynch:fix-lock into master

Created by: mtlynch

FileList reads the map, r.tracking, but does not acquire a read lock beforehand, which leads to crashes. This adds a helper function that acquires the read lock during the map read.

Fixes #2473 (closed)

Merge request reports