aboutsummaryrefslogtreecommitdiff
path: root/errors.go (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-04-17Add 'bolt page' command.Ben Johnson1-7/+466
2015-04-16Add 'bolt dump' command.Ben Johnson1-0/+117
2015-04-15Add improved CLI documentation.Ben Johnson1-4/+123
2015-04-14Refactor bolt CLI.Ben Johnson15-1168/+909
2015-04-12Add --path to bolt bench.Ben Johnson2-2/+8
2015-04-11Added InfluxDB to list of projects using boltMike Marcacci1-0/+1
2015-03-29Update README.mdchrislusf1-1/+1
2015-03-29Update README.mdchrislusf1-0/+1
2015-03-28Update README.md: fixed type mismatchDaniel Speichert1-1/+1
2015-03-27Add link to page reclamation comment.Ben Johnson1-0/+5
2015-03-27READMEBen Johnson1-0/+6
Document use of free pages and page reclamation works.
2015-03-25add comment: db.dataref is readonlyfunkygao1-1/+1
2015-03-25fix comment bug: minium db mmapSize is 1MB instead of 4MBfunkygao1-1/+1
2015-03-24Document key/value safety.Ben Johnson3-0/+12
This commit adds safety documentation to the data accessor functions in Bolt as well as the README. This was documented once in the package level godoc but it's important enough that it should be more clear.
2015-03-18Implement io.WriterTo interface on Tx.Ben Johnson2-13/+19
This commit moves the functionality in Tx.Copy() to Tx.WriteTo(). This allows Tx to be used as an io.WriterTo which makes it easier to mock. The Tx.Copy() function still exists but it's simply a wrapper around Tx.WriteTo().
2015-03-12link to Bolt articleBaiju Muthukadan1-1/+1
2015-02-28Added max alloc size to arm.Adam Polanski1-0/+3
2015-02-28new line after page size info printBaiju Muthukadan1-1/+1
2015-02-27Update max alloc size on 386 arch.Ben Johnson3-1/+6
2015-02-26Increase max array size to 2GB.Ben Johnson1-1/+1
This commit changes the maxAllocSize from 256GB to 2GB to handle large values. It was previously 0xFFFFFFF and I tried adding one more "F" but it caused an "array too large" error. I played around with the value some more and found that 0x7FFFFFFF (2GB) is the highest allowed value. This does not affect how the data is stored. It is simply used for type converting pointers to array pointers in order to utilize zero copy from the mmap.
2015-02-23Fixed missing parenthesis on the readmeVitor De Mario1-1/+1
2015-02-18Add transaction batchingTommi Virtanen7-0/+719
DB.Batch makes it easy to make lots of small transactions with significantly better performance. Batch combines multiple concurrent Update calls into a single disk transaction, managing errors smartly.
2015-02-17added gocode.io to list of projects using bolteverdev1-4/+4
2015-02-16Fix large mmap resize.Ben Johnson2-2/+63
This commit fixes an issue where large databases were being resized to larger sizes on every open.
2015-02-16READMEBen Johnson1-3/+3
Removed reference to LMDB's append mode being unsafe.
2015-02-02Persist sequence-only changes.Ben Johnson4-7/+38
This commit fixes a bug where only calling NextSequence() on a Bucket does not cause the Bucket to be peristed. The simple fix is to simply materialize the root node so that the bucket is flushed out during commit. Thanks to Matthew Dawson (@MJDSys) for reporting. https://github.com/boltdb/bolt/issues/296
2015-01-30Expand assertion statements.Ben Johnson5-18/+47
This commit expands calls to _assert() that use variadic arguments. These calls require conversion to interface{} so there was a large number of calls to Go's internal convT2E() function. In some profiling this was taking over 20% of total runtime. I don't remember seeing this before Go 1.4 so perhaps something has changed.
2015-01-28Fix max mmap check for 32-bit arch.Ben Johnson1-8/+14
2015-01-28Fix mmap step & max size check.Ben Johnson1-9/+13
This commit adds fixes suggested by @tv42 for the mmap step fix in 834b38e: * Check max size before calculating the new the mmap size. * Fix mmap step loop to go to 1GB instead of 512MB.
2015-01-28Add additional error checks in test suite.Ben Johnson1-6/+13
2015-01-28Fix mmap resize calculation.Ben Johnson2-9/+53
This commit fixes an issue where the database would grow whenever it was opened. This was caused by a recent change that performed a truncation when the database grew. Now there are fixed growth sizes for the database (1MB, 2MB, 4MB, 8MB, etc) up to 1GB and then the database will grow by 1GB when it resizes. See also: 6bb25854a183f3d3bfa50096f910d3a3984e9834
2015-01-22Removed redundant duplicate line of codepmcgrath1-1/+0
2015-01-18fix 'range scans' examplePhilipp Tarasiewicz1-1/+1
Due to the fact that you want to iterate over all keys that are before or equal to `max` starting from `min` the bytes.Compare() check should look like the commit suggests.
2015-01-18Add truncate() and sync() on resize.Ben Johnson1-0/+11
This commit fixes an issue with ext3/ext4 filesystems where metadata file size is not synced when resizing a file. It also resizes the entire resize instead of updating the size during individual page writes. Thanks to @tv42 for the fix.
2015-01-15Fix syntax error in README stats examplembertschler1-1/+0
2015-01-12Add check for max mmap size.Ben Johnson1-10/+15
The max mmap size was previous unchecked which resulted in a panic once the maximum size was reached. This commit adds a check for the max size when re-mapping and returns an error if the new map will exceed the size. Thanks to Tamás Gulácsi for testing out the change on i386.
2015-01-12Raise maxMapSize from 256MB to 2GB on 386, arm.Tamás Gulácsi2-2/+2
Fixes #260 and #277.
2015-01-08Remove 'import' and 'export' CLI commands.Ben Johnson5-322/+0
The import and export commands are a relic of early Bolt when the file format was not stable. If the file format changed then users could export their old data and import it into a new database with a new format. The Bolt DB file format is stable and will not change so this command is no longer needed. Thanks to Alejandro Gaviria for pointing this out.
2014-12-11READMEBen Johnson1-0/+34
Add a section to the README for "Managing transactions manually".
2014-12-04grammar & typoRuss Ferriday1-2/+2
2014-11-28READMEBen Johnson1-1/+1
2014-11-28READMEBen Johnson1-1/+44
Added a "Comparison" section to compare Bolt against other DB options: 1. Relational databases 2. LevelDB 3. LMDB
2014-11-27v1.0Ben Johnson1-17/+8
2014-11-27Clarify cursor behavior after mutation.Ben Johnson1-0/+4