Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update existing shared file database instead of creating a new one for each scan #653

Merged
merged 9 commits into from
Sep 22, 2022

Conversation

jpdillingham
Copy link
Member

Presently the database is wiped at the beginning of the scan, and then repopulated. While the scan is running things like share browsing, file downloads, and search responses are unavailable.

This PR ends the behavior of wiping the database, and instead replaces records as files are scanned, allowing the application to continue working normally.

A new timestamp field is added to the file and directory tables in the database, and this field is populated with the timestamp of the start of the scan. When the scan is complete, any records that have a timestamp older than the timestamp of the recently completed scan are deleted, as these files weren't encountered during the new scan, meaning they have been deleted, moved, or unshared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant