lib/model: Use a single lock (phase two: cleanup) (#9276)
Cleanup after #9275. This renames `fmut` -> `mut`, removes the deadlock detector and associated plumbing, renames some things from `...PRLocked` to `...RLocked` and similar, and updates comments. Apart from the removal of the deadlock detection machinery, no functional code changes... i.e. almost 100% diff noise, have fun reviewing.
This commit is contained in:
@@ -1287,9 +1287,9 @@ func TestRequestReceiveEncrypted(t *testing.T) {
|
||||
|
||||
files := genFiles(2)
|
||||
files[1].LocalFlags = protocol.FlagLocalReceiveOnly
|
||||
m.fmut.RLock()
|
||||
m.mut.RLock()
|
||||
fset := m.folderFiles[fcfg.ID]
|
||||
m.fmut.RUnlock()
|
||||
m.mut.RUnlock()
|
||||
fset.Update(protocol.LocalDeviceID, files)
|
||||
|
||||
indexChan := make(chan []protocol.FileInfo, 10)
|
||||
|
||||
Reference in New Issue
Block a user