Consider reorganizing map access #9
Labels
No labels
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/rclone#9
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Access to
containerIDCache
is protected by mutex. However mutex locks sometimes are far away from map access, e.g.resolveContainerIDHelper()
reads the data without mutex, but it is correct because callers lock the mutex (see resolveOrCreateContainer).To make code a bit more error prone, we can change the way to access mutex data. Two ways to deal with it:
Read more in discussion here: #6 (comment)