Community
Participate
Working Groups
Build Identifier: 3.6 M4 protected IRepository basicGetRepository(URI location) { ...................... IRepository repo = (IRepository) info.repository.get(); //update our repository info because the repository may have changed if (repo != null) addRepository(repo, false, null); return repo; } } The comment tells me the repo may have changed, so update the repository info. If so, why still returns the cached repo though the real repo might have changed? Why reset the known suffix for that repo even if it's necessary to update the repo info? My understand is that the suffix escalates the hit rate of loading when there are multiple repo factories. If the repo info records a suffix for the location, repo manager would firstly use the factory that is bind to the suffix. It's also a rare situation that the type of repo is changed. So it would be higher hit rate to load the repo again if keeping the value of suffix. Reproducible: Always
Meng, it would be good if you could produce a patch. Thx
Created attachment 155818 [details] Repo manager should remember suffix when updating the repo info
Comment on attachment 155818 [details] Repo manager should remember suffix when updating the repo info it's created against HEAD
Thanks for the patch!
Fix released in HEAD. Thanks for the patch!