Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

windows: implement file locking #419

Merged
merged 1 commit into from Oct 28, 2015
Merged

Conversation

raggi
Copy link
Contributor

@raggi raggi commented Sep 15, 2015

I added file locking for Windows. Some links to reference constant sources are included.

Tested manually using an example program that simply opens a DB and waits for signal, against Windows XP (sadly, my target platform). According to MSDN this should work on future platforms also, see referenced documentation.

The timeout support was derived from flock_unix.go.

@raggi
Copy link
Contributor Author

raggi commented Sep 15, 2015

See #420 for why I wasn't able to run the whole test suite on my target platform.

@benbjohnson
Copy link
Member

@raggi Thanks for digging into this one. If you can successfully run with the test suite with a lower MaxValueSize (as mentioned in #420) then I'll merge this in.

benbjohnson added a commit that referenced this pull request Oct 28, 2015
windows: implement file locking
@benbjohnson benbjohnson merged commit 1198580 into boltdb:master Oct 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants