Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix moved_records not cleaned #1076

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ksiv
Copy link

@ksiv ksiv commented Oct 5, 2024

Added separate thread to clean records from moved_events that are used for source_path acquisition with some delay for events not to get cleaned before they have a chance to be used as for source_path acquisition

Dict optimized to hold smaller object with only src_path and timestamp.

This PR supposed to deal with #1041
And possibly partly with #587

Konstantin Ivanov added 4 commits October 4, 2024 00:07
… to make sure events remove after they can be used as a "source". Dict content changed from holding whole event to hold only src_path and time, since only src_path is used, time added to use it as a threshold to clean.
Extra test folder deleted

 On branch fix_moved_records_not_cleaned
 Changes to be committed:
	modified:   src/watchdog/observers/inotify_c.py
	modified:   tests/test_inotify_c.py
	deleted:    tests/threaded/conftest.py
	deleted:    tests/threaded/test_inotify_c.py
 Changes to be committed:
	modified:   src/watchdog/observers/inotify_c.py
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant