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

open files on windows with shared delete mode #71

Closed
wants to merge 1 commit into from

Conversation

willscott
Copy link
Contributor

address #70

suggestions welcome on any hints on the set of operations into the datastore that would trigger a windows failure before but we are hopeful might not anymore

@willscott willscott requested a review from Stebalien April 9, 2020 21:52
@@ -0,0 +1,93 @@
// +build windows
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's document that we got this from golang (license, attribution, etc.)

return
}

func tempFile(dir, pattern string) (f *os.File, err error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, now that we're doing this, we should rename the temporary file while it's open. If we do that, nobody will be able to re-open the file without the share delete flag.

@willscott
Copy link
Contributor Author

subsumed by #73

@willscott willscott closed this Apr 10, 2020
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.

2 participants