mrf: Avoid rare data race and more simplification (#12791)

This change avoids a rare data race and simplify the function that
returns MRF last activity information.
This commit is contained in:
Anis Elleuch
2021-07-26 16:00:59 +01:00
committed by GitHub
parent 7106e9394c
commit 39874b77ed
3 changed files with 39 additions and 44 deletions

View File

@@ -293,7 +293,7 @@ var (
globalBackgroundHealRoutine *healRoutine
globalBackgroundHealState *allHealState
globalMRFState *mrfState
globalMRFState mrfState
// If writes to FS backend should be O_SYNC.
globalFSOSync bool