Commit Graph

667 Commits (694a82a9595845d376dd19ff5c24cab78801204b)

Author SHA1 Message Date
Patrick Mezard f8d7ef20e6 bucket: document Put() value must remain valid for the transaction
Issue #324
2015-10-19 10:42:28 +02:00
Rogier Lommers 1af2ec9768 Add example of NextSequence() usage to readme 2015-10-18 15:00:36 +02:00
Matthew Dawson a0c33d065b In 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.
2015-10-17 14:04:42 -04:00
Ben Johnson b05ba12bcb Merge pull request #437 from shaggytwodope/master
small typos
2015-10-14 15:29:50 -06:00
John ShaggyTwoDope Jenkins a7a29a20cd typos 2015-10-13 17:14:11 -07:00
Ben Johnson 14ea02b7ee Merge pull request #435 from hqhq/hq_add_arm64
Add support for arm64
2015-10-09 08:39:41 -06:00
Qiang Huang 503413c015 Add support for arm64
Added build tag for arm64, so we won't get any errors on other
platforms with go 1.4.x.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2015-10-09 10:29:22 +08:00
Srini Brahmaroutu 721cf88e1b adding seperate files to compile on IBM Power and Z
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
2015-10-03 00:35:02 +00:00
Ben Johnson 51f99c8624 Merge pull request #428 from lukechampine/patch-1
Document undefined behavior in ForEach
2015-09-21 14:14:00 -06:00
Ben Johnson ebe1067083 Merge pull request #427 from joyrexus/master
Add two little projects to README project list
2015-09-21 14:13:13 -06:00
Luke Champine 5f9559f227 Document undefined behavior in ForEach 2015-09-21 15:49:06 -04:00
Jason Voigt 130d6c5d98 add stow and buckets to projects list 2015-09-21 13:31:50 -05:00
James Tucker 1cb787ee7b windows: implement file locking 2015-09-16 09:28:26 -03:00
Ben Johnson 033d4ec028 Merge pull request #418 from benbjohnson/revert-arm64
Revert arm64 change
2015-09-09 15:26:31 -06:00
Ben Johnson a74efb5d16 revert arm64 change
This commit removes the arm64 change because it caused issues
with Go 1.4.

Fixes #416.
2015-09-09 15:16:17 -06:00
Ben Johnson 9f37fd92c7 Merge pull request #414 from jefby/jefby
add bolt_arm64.go for arm64
2015-09-09 13:14:45 -06:00
jefby 69f6bd2f78 add bolt_arm64.go for arm64
Signed-off-by: jefby <jef199006@gmail.com>
2015-09-08 10:48:40 +08:00
Ben Johnson 0c24824a36 Merge pull request #413 from benbjohnson/release-rwtx
Release read-write Tx after close
2015-09-04 15:04:52 -06:00
Ben Johnson 4c92e3fa22 release read-write tx after close
This commit removes references to the last write transaction and
and its dirty pages after the transaction has been closed. This
bug did not affect the safety of the data, however, it would
cause dirty pages to linger in-memory until the next write
transaction began.
2015-09-04 13:07:06 -06:00
Ben Johnson 90fef389f9 Merge pull request #411 from Apsalar/solaris-mmap-flock-fixes
solaris: fix issues with mmap, munmap, madvise and flock
2015-08-24 19:23:40 -06:00
Ken Sedgwick 2f4ba1c533 solaris: fix issues with mmap, munmap, madvise and flock 2015-08-21 14:44:13 -07:00
Ben Johnson 0f053fabc0 Merge pull request #405 from artyom/bolt-command-prints-fix
Fix invalid fmt.Fprintln/Errorf calls
2015-08-11 08:05:07 -06:00
Artyom Pervukhin 8547e9ef2f Fix invalid fmt.Fprintln/Errorf calls
`go vet` discovered two calls of Fprintln with trailing newline and one
Errorf call without proper format string.
2015-08-11 11:35:43 +03:00
Ben Johnson c2745b3c62 Merge pull request #403 from tv42/readme-bazil
Better URL for Bazil in README
2015-07-31 10:25:20 -06:00
Tommi Virtanen df7ec9554b Better URL for Bazil in README 2015-07-29 16:39:44 -07:00
Ben Johnson 980670afce Merge pull request #398 from odeke-em/master
README: add drive to projects using bolt
2015-07-15 09:15:32 -06:00
Emmanuel Odeke c46c54210a README: add drive to projects using bolt 2015-07-14 13:12:25 -06:00
Martin Kobetic 04a3e85793 Merge sorted pgids rather than resorting everything 2015-06-16 13:48:54 -06:00
Ben Johnson be4e606bc4 Merge pull request #388 from ajvb/master
Added Kala to Projects Using Bolt section
2015-06-10 20:31:01 -06:00
AJ Bahnken af0644b17a Added Kala to Projects Using Bolt section 2015-06-10 18:24:53 -07:00
Ben Johnson abb4088170 Merge pull request #387 from benbjohnson/batch-doc
Add batch size and delay docs
2015-06-10 11:09:42 -06:00
Ben Johnson 696f3a3ada Add batch size and delay docs
This commit adds documentation for batch size and delay to the
DB.Batch() call. Previously there was no reference to these properties
from the Batch() call so it was nearly impossible for anyone to
know to adjust these settings.

Thanks to Kelly Sommers for bringing the doc issue to my attention.
2015-06-10 10:59:56 -06:00
Ben Johnson 5eb31d5821 Merge pull request #384 from benbjohnson/drone
Fix Drone CI
2015-06-04 12:02:00 -06:00
Ben Johnson 06e894e661 Fix Drone CI.
This commit ignores the TestBucket_Put_ValueTooLarge test on
Drone CI because the containers do not have enough memory. This
test will still be run by anyone else who runs the test suite so
that will still provide coverage.
2015-06-04 11:48:43 -06:00
Ben Johnson 34b7c13e04 Merge pull request #367 from mdlayher/master
bucket_test: add test for ErrValueTooLarge on insert
2015-06-03 13:34:06 -06:00
Ben Johnson 764b4844e9 Merge pull request #368 from mdlayher/test_tx_foreach
tx_test: add tests for two tx.ForEach cases
2015-06-03 13:21:39 -06:00
Ben Johnson 8f42da05d6 Merge pull request #383 from benbjohnson/madvise
Add madvise() after mmap().
2015-06-03 07:10:20 -06:00
Ben Johnson 88f777f332 Add madvise() after mmap().
This commit advises the mmapped data file to use MADV_RANDOM to avoid
readahead. This can provide a performance boost to Bolt databases that
are larger than memory by avoiding unnecessary disk i/o.
2015-06-02 13:04:44 -06:00
Ben Johnson afceb316b9 Merge pull request #379 from benbjohnson/tx-doc
Add docs for dependent transactions.
2015-05-21 09:53:52 -06:00
Ben Johnson a03d52a9dd Add docs for dependent transactions.
This commit adds documentation to clarify that read-only and read-write
transactions should not be mixed in the same goroutine as it can cause
deadlocks during remapping.

See: https://github.com/boltdb/bolt/issues/378
2015-05-21 09:50:13 -06:00
Ben Johnson c69cb102ce Merge pull request #377 from benbjohnson/close-race
Wait for pending transactions on close
2015-05-21 09:02:35 -06:00
Ben Johnson e929eba364 Wait for pending tx on close.
This commit fixes the DB.Close() function so that it waits for any
open transactions to finish before closing.
2015-05-20 16:10:07 -06:00
Ben Johnson 55af28c19c Merge pull request #376 from ryanuber/readme-consul
Add Consul to README
2015-05-19 20:17:35 -06:00
Ryan Uber 89ab219630 Add Consul to README 2015-05-19 19:12:40 -07:00
Ben Johnson 957d850b51 README 2015-05-18 13:50:00 -06:00
Ben Johnson d4363a9208 Merge branch 'ro' 2015-05-18 13:45:09 -06:00
Ben Johnson df52bd0803 Add test case inline documentation. 2015-05-18 13:45:02 -06:00
sasha-s aa13f7f94f make ignoring Truncate() explicit
https://github.com/boltdb/bolt/pull/371#issuecomment-103176330
2015-05-18 12:00:40 -07:00
sasha-s fda75748b5 use a shared lock in read-only mode
https://github.com/boltdb/bolt/pull/371#issuecomment-103119486
2015-05-18 11:07:19 -07:00
Ben Johnson c5eb8da413 Merge pull request #375 from benbjohnson/min-mmap-size
Change min mmap size from 1MB to 32KB.
2015-05-18 11:51:49 -06:00