Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
egalvis27
force-pushed
the
feat/prepare-database-for-best-sync
branch
from
October 9, 2026 20:23
28267c9 to
28117b0
Compare
…DriveMetadataSynchronizationService
egalvis27
force-pushed
the
feat/add-lazy-metadata-loading
branch
from
October 9, 2026 20:28
4ae6839 to
425bca8
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


What is Changed / Added
Lazy directory hydration
LazyVirtualDriveHydratorto resolve virtual-drive paths and hydrate directory children on demand.readDirectoryresolves a directory, refreshes its children when the cached state is stale, and returns local folder/file entries.ensurePathLoadedhydrates a path's parent directory before retrying file lookups.folderId:statusScope, so concurrent FUSE operations share the same remote hydration request.Remote directory persistence
Added
hydrateDirectoryChildren, which:FolderandFileentities and updates the corresponding repositories.Added dedicated remote file/folder mappers with direct tests for:
fileIdnormalization.FUSE operation integration
opendirto use lazy hydration before listing local directory entries.getAttributesto hydrate the parent directory and retry local file/folder lookup when an entry is not initially present.opento hydrate and retry file lookup before returningENOENT.Why
The Virtual Drive must remain usable while the remote account contains a very large number of files and folders.
Previously, FUSE operations depended on the local catalog being fully synchronized before users could browse directories or access files. This change allows the application to fetch and persist only the directory children required by the current filesystem operation.
The directory-state cache avoids repeatedly fetching recently loaded folders, while the in-flight request registry prevents duplicate API calls when multiple FUSE requests target the same stale directory concurrently. Stale-child cleanup and directory-state invalidation keep the local cache coherent after remote changes.