aboutsummaryrefslogtreecommitdiff
path: root/bolt_unix.go (unfollow)
Commit message (Expand)AuthorFilesLines
2015-12-31[docs] Add table of contents•••- Generated and tweaked a TOC using [doctoc](https://github.com/thlorenz/doctoc) - (removed generated headers and fixed broken ampersand conversion) Matt Silverlock1-1/+29
2015-12-21Introduce InitialMmapSize to prevent deadlock•••InitialMmapSize is the initial mmap size of the database in bytes. Read transaction won't block write transaction if InitialMmapSize is large enough to handle mmap size. Copied from https://github.com/boltdb/bolt/pull/432. Gyu-Ho Lee2-1/+60
2015-12-17Update min mmap size in godocRodolfo Carvalho1-1/+1
2015-12-14Update README URLs based on HTTP redirectsReadmeCritic1-5/+5
2015-12-10Make bolt.Open return the documented errors•••- ErrInvalid is returned when a data file is not a Bolt-formatted database. - ErrVersionMismatch is returned when the data file was created with a different version of Bolt. - ErrChecksum is returned when either meta page checksum does not match. Also: - Do not wrap errors from os.Stat, so that a caller could handle os.Stat errors just like it can handle errors from os.Open that bolt.Open might return. - Name tests consistently, following the pattern "TestOpen_*". - Remove deferred calls to `os.Remove(path)`. The calls are not only unnecessary, but also in all cases `os.Remove` returns an error that is ignored. All those calls are meant to remove a file that was already removed by `tmpfile()`. - Combine "bad path" tests and use filepath.Join to build the path. Rodolfo Carvalho2-28/+98
2015-12-05README•••Replace reference to the coalescer with a reference to `DB.Batch()`. Fixes #465.Ben Johnson1-3/+2
2015-12-05Fix `bolt stats` outputRodolfo Carvalho2-1/+44
2015-12-05Put backticks around function name in descriptionRodolfo Carvalho1-4/+4
2015-11-22Fix typo in commentMark Rushakoff1-1/+1
2015-11-22Explain iterating over sub-buckets in READMEMark Rushakoff1-4/+9
2015-11-08Add MmapFlags option for MAP_POPULATE (unix)•••This adds MmapFlags to DB.Options in case we need syscall.MAP_POPULATE flag in Linux 2.6.23+ to do the sequential read-ahead, as discussed in [1]. --- [1]: https://github.com/coreos/etcd/issues/3786 Gyu-Ho Lee3-3/+11
2015-11-06update WriteTo() docs•••This commit updates and revises some of the documentation around Tx.WriteTo() and how O_DIRECT is no longer the default. Ben Johnson3-15/+13
2015-11-06add 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 Li4-12/+13
2015-11-05skip empty pages during cursor seek•••This commit fixes an issue where keys are skipped by cursors after deletions occur in a bucket. This occurred because the cursor seeks to the leaf page but does not check if it is empty. Fixes #429, #450 Luke Champine2-19/+78
2015-11-03updated README.md to fix typoCharlie Cochrane1-2/+2
2015-10-28lower MaxValue to 2GB•••This commit changes the maximum value size to 2GB so that tests can run on 32-bit machines. There's really no reason to write a 2GB+ value to Bolt. It's not terribly efficient for large values. Ben Johnson1-1/+1
2015-10-28typo and highlightHung Nguyen Viet1-3/+3
2015-10-24README: add 'Reading the Source' section•••This commit adds a section to help people understand the source better while reading it. Ben Johnson1-0/+50
2015-10-21bucket: document buckets are valid only during the transaction•••Issue #313 Patrick Mezard2-0/+6
2015-10-20README: mention the memory map consumes a lot of address space•••I have been bitten by this when running a simple application on a Raspberry Pi 2. It had 3 stores: two 512M stores and one 128M. The application refused to start the moment the first index grew from 512M to 1G. Bolt is really nice but it is easy to overlook this limitation, especially with the note about supporting stores much larger than *physical* memory. Patrick Mezard1-1/+3
2015-10-19bucket: document Put() value must remain valid for the transaction•••Issue #324 Patrick Mezard1-0/+1
2015-10-18Add example of NextSequence() usage to readmeRogier Lommers1-0/+44
2015-10-17In TestBucket_Delete_FreelistOverflow, use Cursor.Delete to remove records.•••When removing all the keys from the bucket, use Cursor.Delete directly, which avoids a seek through the bucket to find the element to delete. This knocks 1/5 of the time off my laptop when running this test while not reducing the amount of overflow pages cleared out of the free list. Matthew Dawson1-1/+1
2015-10-13typosJohn ShaggyTwoDope Jenkins2-3/+3