[scheduler] Move generic parts of fetchMountInfo logic to the Scheduler
Description
Changes were made recently in the OStoreDB fetchMountInfo logic without the corresponding changes made for the RelationalDB fetchMountInfo. Since these two share the way the mount policies are applied and how the existing and next mounts are filled, we could avoid the code duplication by moving them to the Scheduler logic itself.
Checklist
-
Documentation reflects the changes made. -
Merge Request title is clear, concise, and suitable as a changelog entry. See our contributing docs
References
Closes #1303 (closed)
Edited by Jaroslav Guenther