Commit Graph

508 Commits (75f70a1938f7e6990b3007824db86eb9bfb387e1)

Author SHA1 Message Date
Ben Johnson 75f70a1938 README
Removed reference to LMDB's append mode being unsafe.
2015-02-16 08:09:08 -07:00
Ben Johnson b8dbe1101d Merge pull request #297 from benbjohnson/seq
Persist sequence-only changes
2015-02-02 09:11:18 -07:00
Ben Johnson ac1149a3f5 Persist sequence-only changes.
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-02-02 08:27:34 -07:00
Ben Johnson b124606822 Merge pull request #294 from benbjohnson/assert
Expand assertion statements
2015-02-02 07:49:02 -07:00
Ben Johnson b4d00c394a Expand assertion statements.
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-30 14:15:49 -05:00
Ben Johnson 681a5db8f6 Merge pull request #292 from benbjohnson/fix-size
Fix mmap resize calculation.
2015-01-28 16:58:01 -05:00
Ben Johnson 338d8e78e2 Fix max mmap check for 32-bit arch. 2015-01-28 16:27:06 -05:00
Ben Johnson dacc1873d1 Fix mmap step & max size check.
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-28 13:03:30 -05:00
Ben Johnson 4e3fb8d60b Add additional error checks in test suite. 2015-01-28 11:52:08 -05:00
Ben Johnson 834b38e3e7 Fix mmap resize calculation.
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: 6bb25854a1
2015-01-28 11:29:27 -05:00
Ben Johnson 00c635718f Merge pull request #290 from pmcgrath/deadcode
Removed redundant duplicate line of code
2015-01-22 13:48:36 -07:00
pmcgrath 2110587fdd Removed redundant duplicate line of code 2015-01-22 12:15:40 +00:00
Ben Johnson 359b138d73 Merge pull request #287 from justphil/master
fix 'range scans' example
2015-01-18 07:55:06 -08:00
Ben Johnson 4397537d1d Merge pull request #286 from benbjohnson/trunc-n-sync
Add truncate() and sync() on resize.
2015-01-18 07:49:58 -08:00
Philipp Tarasiewicz e238914be8 fix 'range scans' example
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-18 16:39:15 +01:00
Ben Johnson 6bb25854a1 Add truncate() and sync() on resize.
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-18 08:24:53 -07:00
Ben Johnson 15a58b04ae Merge pull request #283 from mbertschler/master
Fix syntax error in README stats example
2015-01-15 15:27:39 -07:00
mbertschler 565600c841 Fix syntax error in README stats example 2015-01-15 21:09:34 +01:00
Ben Johnson 1c6f04b302 Merge pull request #282 from benbjohnson/max-mmap-check
Add check for max mmap size.
2015-01-12 08:11:07 -07:00
Ben Johnson 8374d6adc5 Add check for max mmap size.
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-12 08:06:42 -07:00
Ben Johnson a12b668bf7 Merge pull request #281 from tgulacsi/master
Raise maxMapSize from 256MB to 2GB on 386, arm.
2015-01-12 08:02:20 -07:00
Tamás Gulácsi 51dd6b9ae3 Raise maxMapSize from 256MB to 2GB on 386, arm.
Fixes #260 and #277.
2015-01-12 15:01:25 +01:00
Ben Johnson ee986d7220 Merge pull request #279 from benbjohnson/remove-import-export
Remove 'import' and 'export' CLI commands.
2015-01-08 15:08:26 -07:00
Ben Johnson ea7ace2f62 Remove 'import' and 'export' CLI commands.
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.
2015-01-08 15:03:55 -07:00
Ben Johnson 33e7a074e2 README
Add a section to the README for "Managing transactions manually".
2014-12-11 13:48:25 -07:00
Ben Johnson 293da013ae Merge pull request #267 from topiaruss/patch-1
grammar & typo
2014-12-04 16:23:23 -07:00
Russ Ferriday 2a13d5ca83 grammar & typo 2014-12-04 22:23:20 +00:00
Ben Johnson a5e6bc6658 README 2014-11-28 11:23:15 -07:00
Ben Johnson 746cadce7a README
Added a "Comparison" section to compare Bolt against other DB options:

1. Relational databases
2. LevelDB
3. LMDB
2014-11-28 11:17:47 -07:00
Ben Johnson aa66506030 v1.0 2014-11-27 17:29:59 -07:00
Ben Johnson 74489c7516 Clarify cursor behavior after mutation. 2014-11-27 17:18:05 -07:00
Ben Johnson b4417f3ae3 Merge pull request #265 from benbjohnson/arm
Add ARM support.
2014-11-27 16:57:33 -07:00
Ben Johnson 0845303c2a Add ARM support. 2014-11-27 16:52:27 -07:00
Ben Johnson e65c9027c3 Merge pull request #264 from ebberg/patch-1
fix link in readme
2014-11-25 14:35:46 -07:00
Eric Berg 16247c3a42 fix link in readme 2014-11-25 15:10:19 -05:00
Ben Johnson d285804df1 Merge pull request #259 from davecgh/jrick_msync
Fix bolt on OpenBSD
2014-09-22 11:53:19 -06:00
Ben Johnson 1ed004d77f Merge pull request #258 from davecgh/davec_build
Rework build to support more liberal unix variants.
2014-09-22 11:48:13 -06:00
Josh Rickmar a2cbaa05f9 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.
2014-09-18 18:14:50 -05:00
Dave Collins 8cdba50ea1 Rework build to support more liberal unix variants.
Rather than having the build setup such that it will only work on the
specifically defined operating systems, this commit modifies it to use
more liberal !windows,!plan9 build tag for the unix specific bits.

This means bolt will compile on more Operating Systems such as OpenBSD,
FreeBSD, and NetBSD.

See boltdb/bolt#257 for discussion.
2014-09-18 14:04:59 -05:00
Ben Johnson 3ba61af120 Merge pull request #254 from benbjohnson/caveat-rss
Add caveat for memory usage.
2014-09-16 00:08:47 -06:00
Ben Johnson 7022ade6e6 Add caveat for memory usage.
This commit adds a caveat for high memory usage shown by processes with large
Bolt databases. This is expected behavior and is handled by the OS page cache.
2014-09-15 11:09:55 -06:00
Ben Johnson a6934a4f5b Merge pull request #252 from extemporalgenome/patch-1
Fixed typo in README.md
2014-09-11 21:17:28 -06:00
Kevin Gillette c0a48fb4be Fixed typo in README.md 2014-09-11 20:50:44 -06:00
Ben Johnson 02639b84ed Merge pull request #250 from guilhem/tentacool
Tentacool is using bolt too ;)
2014-09-01 11:40:02 -06:00
Guilhem Lettron d902166ae5 Tentacool is using bolt too ;) 2014-09-01 11:39:07 +02:00
Ben Johnson 0812d4ba39 Merge pull request #249 from deoxxa/patch-1
add bleve to project list
2014-08-30 18:18:36 -06:00
Conrad Pankoff d5bf4d234f add bleve to project list 2014-08-31 00:57:54 +10:00
Ben Johnson 5f72f55b58 Merge pull request #248 from miku/cayley
Add cayley to projects using bolt list.
2014-08-28 09:17:03 -06:00
Martin Czygan e786ef2a5d Add cayley to projects using bolt list. 2014-08-28 16:34:18 +02:00
Ben Johnson 13d3612add Merge pull request #245 from benbjohnson/caveat
Add single-bucket/single-tx caveat.
2014-08-24 18:06:50 -06:00