Repository navigation
Only mount the storages for the user once - #11539
Conversation
|
What about the cases with the share app where we need to call |
No, it still allows setting up the filesystem for different users |
|
I suppose this is also not possible to unit test? |
|
Not really, it's right within the filesystem setup mess (cleanup is being worked on) |
|
looks good and also solved #11736 to a large extend 👍 |
120406b to
3f63f4b
Compare
|
The inspection completed: 1 updated code elements |
|
🚀 Test PASSed. 🚀 |
|
This needs a second reviewer... Would be great to get it in, because it also blocks other pull requests. @PVince81 maybe you want to have a look at it? |
|
Code makes sense 👍 |
Only mount the storages for the user once
|
This was fast 😄 |
Filesystem::initMountPoints()is called in various places to get the filesystem loaded for sharing.Currently every time the method is called the mount for the user will be overwritten by new instances of the storage which causes an overhead in case of external storage (having to re-initialize the connection), messes with the locking wrapper(a new instance will be created and the old one, holding any open locks is thrown away) and probably breaks some more assumptions regarding storages and storage wrappers.
This adds a basic check to make sure we only setup the mount points for each user once
cc @DeepDiver1975 @PVince81 @th3fallen