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

Refactor sincedb entirely. #75

Open
guyboertje opened this issue Jan 26, 2016 · 0 comments
Open

Refactor sincedb entirely. #75

guyboertje opened this issue Jan 26, 2016 · 0 comments
Assignees

Comments

@guyboertje
Copy link
Contributor

Now that we have the WatchedFile class to track the state of a file as we know it, I propose to create a WatchedFileStore class in place of the @files hash.
The WatchedFileStore

  • should be the responsibility of Watch not Tail.
  • should replace the sincedb Hash
  • should be loaded from an existing sincedb file with backward compatibility.
  • should, when loading, verify that the file can be stated before adding a new watched_file instance.
  • should saved in place of the sincedb file
  • should be backed by a Hash
  • have entries keyed on path and inode but not device
  • should find all entries with the same path
  • should find all entries with the same inode
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

No branches or pull requests

1 participant