-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
De-duplicate OnDiskCorpus #2802
base: main
Are you sure you want to change the base?
Conversation
@domenukk i hope i am going in the right direction. could you have a look at whether this was what you wanted? |
}); | ||
|
||
// New testcase, we need to save it. | ||
let mut file_name = file_name_orig.clone(); | ||
let lockfile_name = format!(".{file_name}.lock"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we won't need a lockfile anymore for this dude
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah wait, you're using the lockfile as a counter now? That would allow us to remove the file when no clients use it anymore, right? Maybe an interesting approach..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the implementation that you originally proposed in the issue, or have I misunderstood it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, looks like I have my bright moments...
In that case great! :)
Also, this feature should maybe be optional - it's not needed if testcases rarely get removed or their content changes seldomly.
addresses #2434