aboutsummaryrefslogtreecommitdiff
path: root/bolt_linux.go (follow)
Commit message (Expand)AuthorAgeFilesLines
* add WriteToFlag to Tx•••For in memory workload, it does not make sense to use o_direct to copy the file. Adding a option to clear out o_direct and for other future cases. Xiang Li2015-11-061-2/+0
* Fix bolt on OpenBSD.•••OpenBSD does not include a UBC kernel and writes must be synchronized with the msync(2) syscall. In addition, the NoSync field of the DB struct should be ignored on OpenBSD, since unlike other platforms, missing msyncs will result in data corruption. Depends on PR #258. Fixes #257. Josh Rickmar2014-09-181-3/+2
* Add Open() options, flock timeout.•••This commit changes Open() to provide an additional Options argument. The options argument currently only has a Timeout which will cause the Open() to return ErrTimeout if a file lock cannot be obtained in time. Fixes #207. Ben Johnson2014-06-211-40/+0
* Add Windows support.•••This commit adds Windows support to Bolt. Windows memory maps return an address instead of a byte slice so the DB.data field had to be refactored to be a pointer to a large byte array. Ben Johnson2014-06-121-6/+26
* Add Windows support.Ben Johnson2014-06-111-0/+21
* Avoid trashing page cache on Tx.Copy().•••This commit change the database copy to use O_DIRECT so that the Linux page cache is not trashed during a backup. This is only available on Linux. Ben Johnson2014-05-231-0/+2
* Consolidate code for clarity.•••This commit consolidates some of the smaller files into some of the larger files. The smaller files cluttered the file tree and made it harder to see the logical groupings of structs. Ben Johnson2014-05-051-0/+10