aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | [docs] Add table of contentsMatt Silverlock2015-12-311-1/+29
| | | | | | | | | | | | | | | | | | | | - Generated and tweaked a TOC using [doctoc](https://github.com/thlorenz/doctoc) - (removed generated headers and fixed broken ampersand conversion)
* | | | Merge pull request #471 from rhcarvalho/patch-1Ben Johnson2015-12-301-1/+1
|\ \ \ \ | | | | | | | | | | Update min mmap size in godoc
| * | | | Update min mmap size in godocRodolfo Carvalho2015-12-171-1/+1
| |/ / /
* | | | Merge pull request #472 from gyuho/initial_mmapBen Johnson2015-12-302-1/+60
|\ \ \ \ | |/ / / |/| | | Introduce InitialMmapSize to prevent deadlock
| * | | Introduce InitialMmapSize to prevent deadlockGyu-Ho Lee2015-12-212-1/+60
|/ / / | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #470 from ReadmeCritic/masterBen Johnson2015-12-141-5/+5
|\ \ \ | | | | | | | | Update README URLs based on HTTP redirects
| * | | Update README URLs based on HTTP redirectsReadmeCritic2015-12-141-5/+5
|/ / /
* | | Merge branch 'rhcarvalho-db-open-errors'Ben Johnson2015-12-102-28/+98
|\ \ \
| * | | Make bolt.Open return the documented errorsRodolfo Carvalho2015-12-102-28/+98
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
* | | Merge pull request #467 from boltdb/readme-coalescerBen Johnson2015-12-051-3/+2
|\ \ \ | | | | | | | | README
| * | | READMEBen Johnson2015-12-051-3/+2
|/ / / | | | | | | | | | | | | Replace reference to the coalescer with a reference to `DB.Batch()`. Fixes #465.
* | | Merge pull request #463 from rhcarvalho/fix-statsBen Johnson2015-12-052-1/+44
|\ \ \ | | | | | | | | Fix `bolt stats` output
| * | | Fix `bolt stats` outputRodolfo Carvalho2015-12-052-1/+44
| | | |
* | | | Merge pull request #462 from rhcarvalho/patch-readmeBen Johnson2015-12-051-4/+4
|\ \ \ \ | |/ / / |/| | | Put backticks around function name in description
| * | | Put backticks around function name in descriptionRodolfo Carvalho2015-12-051-4/+4
|/ / /
* | | Merge pull request #461 from mark-rushakoff/doc-iterate-bucketsBen Johnson2015-11-222-5/+10
|\ \ \ | |_|/ |/| | Document iterating over buckets
| * | Fix typo in commentMark Rushakoff2015-11-221-1/+1
| | |
| * | Explain iterating over sub-buckets in READMEMark Rushakoff2015-11-221-4/+9
|/ /
* | Merge pull request #455 from gyuho/boltdb_unix_map_populateBen Johnson2015-11-123-3/+11
|\ \ | | | | | | Add MmapFlags option for MAP_POPULATE (unix)
| * | Add MmapFlags option for MAP_POPULATE (unix)Gyu-Ho Lee2015-11-083-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge pull request #452 from benbjohnson/empty-seekBen Johnson2015-11-092-19/+78
|\ \ \ | |/ / |/| | Skip empty pages during cursor seek
| * | skip empty pages during cursor seekLuke Champine2015-11-052-19/+78
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge branch 'xiang90-tx_write'Ben Johnson2015-11-066-19/+18
|\ \ \ | |/ / |/| |
| * | update WriteTo() docsBen Johnson2015-11-063-15/+13
| | | | | | | | | | | | | | | This commit updates and revises some of the documentation around Tx.WriteTo() and how O_DIRECT is no longer the default.
| * | add WriteToFlag to TxXiang Li2015-11-064-12/+13
|/ / | | | | | | | | | | 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.
* | Merge pull request #451 from Charlesworth/masterBen Johnson2015-11-031-2/+2
|\ \ | | | | | | updated README.md to fix typo
| * | updated README.md to fix typoCharlie Cochrane2015-11-031-2/+2
|/ /
* | Merge pull request #419 from raggi/windows-flockBen Johnson2015-10-282-9/+59
|\ \ | | | | | | windows: implement file locking
| * | windows: implement file lockingJames Tucker2015-09-162-9/+59
| | |
* | | Merge pull request #447 from benbjohnson/max-value-sizeBen Johnson2015-10-281-1/+1
|\ \ \ | | | | | | | | Lower MaxValue to 2GB
| * | | lower MaxValue to 2GBBen Johnson2015-10-281-1/+1
|/ / / | | | | | | | | | | | | | | | 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.
* | | Merge branch 'hvnsweeting-hvn-fix-doc'Ben Johnson2015-10-281-3/+3
|\ \ \
| * | | typo and highlightHung Nguyen Viet2015-10-281-3/+3
|/ / /
* | | Merge pull request #441 from pmezard/document-put-constraintBen Johnson2015-10-281-0/+1
|\ \ \ | | | | | | | | bucket: document Put() value must remain valid for the transaction
| * | | bucket: document Put() value must remain valid for the transactionPatrick Mezard2015-10-191-0/+1
| | | | | | | | | | | | | | | | Issue #324
* | | | Merge pull request #445 from benbjohnson/readingBen Johnson2015-10-271-0/+50
|\ \ \ \ | | | | | | | | | | README: Add 'Reading the Source' section
| * | | | README: add 'Reading the Source' sectionBen Johnson2015-10-241-0/+50
|/ / / / | | | | | | | | | | | | | | | | This commit adds a section to help people understand the source better while reading it.
* | | | Merge pull request #431 from brahmaroutu/support_power_zBen Johnson2015-10-212-0/+18
|\ \ \ \ | | | | | | | | | | adding seperate files to compile on IBM Power and Z
| * | | | adding seperate files to compile on IBM Power and ZSrini Brahmaroutu2015-10-032-0/+18
| | |_|/ | |/| | | | | | | | | | Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
* | | | Merge pull request #444 from pmezard/doc-bucket-lifetimeBen Johnson2015-10-212-0/+6
|\ \ \ \ | | | | | | | | | | bucket: document buckets are valid only during the transaction
| * | | | bucket: document buckets are valid only during the transactionPatrick Mezard2015-10-212-0/+6
|/ / / / | | | | | | | | | | | | Issue #313
* | | | Merge pull request #442 from pmezard/mention-address-space-consumptionBen Johnson2015-10-201-1/+3
|\ \ \ \ | | | | | | | | | | README: mention the memory map consumes a lot of address space
| * | | | README: mention the memory map consumes a lot of address spacePatrick Mezard2015-10-201-1/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #439 from MJDSys/speed_up_testBen Johnson2015-10-191-1/+1
|\ \ \ \ | | | | | | | | | | In TestBucket_Delete_FreelistOverflow, use Cursor.Delete to remove records.
| * | | | In TestBucket_Delete_FreelistOverflow, use Cursor.Delete to remove records.Matthew Dawson2015-10-171-1/+1
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #440 from rogierlommers/masterBen Johnson2015-10-191-0/+44
|\ \ \ \ | |/ / / |/| | | Add example of NextSequence() usage to readme
| * | | Add example of NextSequence() usage to readmeRogier Lommers2015-10-181-0/+44
|/ / /
* | | Merge pull request #437 from shaggytwodope/masterBen Johnson2015-10-142-3/+3
|\ \ \ | | | | | | | | small typos
| * | | typosJohn ShaggyTwoDope Jenkins2015-10-132-3/+3
|/ / /
* | | Merge pull request #435 from hqhq/hq_add_arm64Ben Johnson2015-10-091-0/+9
|\ \ \ | |/ / |/| | Add support for arm64