reload uuid map after editing repo description and saving
Don't rely on the ConfigMonitor thread, it might be too slow.
This commit is contained in:
parent
93ffd47d76
commit
f6208bca0d
1 changed files with 2 additions and 1 deletions
|
@ -60,8 +60,9 @@ getRepoConfig uuid r mremote = RepoConfig
|
|||
|
||||
setRepoConfig :: UUID -> Maybe Remote -> RepoConfig -> RepoConfig -> Handler ()
|
||||
setRepoConfig uuid mremote oldc newc = do
|
||||
when (repoDescription oldc /= repoDescription newc) $ runAnnex undefined $
|
||||
when (repoDescription oldc /= repoDescription newc) $ runAnnex undefined $ do
|
||||
maybe noop (describeUUID uuid . T.unpack) (repoDescription newc)
|
||||
void uuidMapLoad
|
||||
when (repoGroup oldc /= repoGroup newc) $ runAnnex undefined $
|
||||
case repoGroup newc of
|
||||
RepoGroupStandard g -> setStandardGroup uuid g
|
||||
|
|
Loading…
Add table
Reference in a new issue