Commit Graph

1029 Commits (4504feba82e157ea781b603911b90c5786ba268c)

Author SHA1 Message Date
Gyuho Lee 8aa16a85c8 travis.yml: set Go import path
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-28 08:24:03 -07:00
Gyuho Lee b2a561c156 README: add "Importing bbolt"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-28 08:20:04 -07:00
Gyuho Lee 5912526255 travis.yml: run "errcheck" on CI
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-28 08:18:01 -07:00
Gyuho Lee 75d4714c2c *: rename "cmd/bbolt"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-28 08:17:28 -07:00
Gyuho Lee 77a57326e3 appveyor: remove
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-28 08:16:01 -07:00
Gyuho Lee 76a4670663 *: update import paths "go.etcd.io/bbolt"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-28 08:15:54 -07:00
Gyuho Lee 82839da515 README: use "travis-ci.com"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-27 20:02:45 -07:00
Gyuho Lee 92164941b0 README: add travis badge
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-27 20:01:35 -07:00
Paul e06ec0a754 Fix Close() to also wait for view transactions and fix tests as well (#91)
* Fix testDB_Close_PendingTx to do something with the writable arg and stop it from closing twice

* Fix Close() to wait for view transactions by getting a full lock on mmaplock

* Fix the TestTx_Check_ReadOnly to close the view transaction

* Fix the TestTx_Commit_ErrTxNotWritable to close the view transaction
2018-08-27 19:56:38 -07:00
Gyuho Lee 1b9752fe53 travis.yml: initial commit
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-27 19:32:56 -07:00
Gyuho Lee 0bff9a461c *: update import paths to "github.com/etcd-io/bbolt"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-27 19:25:01 -07:00
Gyuho Lee 8c8b786149 cmd/bolt: update import paths
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-27 19:24:48 -07:00
Gyuho Lee a99fcf0d18 Makefile: update import paths
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-27 19:24:35 -07:00
Gyuho Lee 4fd8b14539 README: update repo URLs
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-27 19:24:16 -07:00
Gyuho Lee af9db2027c
Merge pull request #89 from gyuho/c1
db.go: clean up file descriptor on init/read failures
2018-03-17 17:15:26 -07:00
Gyuho Lee 3130a60889 db.go: clean up file descriptor on db.file.ReadAt fail
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-17 17:00:29 -07:00
Gyuho Lee 2e0870604c
Merge pull request #75 from shenlanse/dev
cursor: remove redundant check when seek
2018-03-17 15:11:03 -07:00
blueblue ebb8629339 cursor: remove redundant check when seek 2018-03-17 15:03:43 -07:00
CJ DiMaggio 818c231b78 Clean up file descriptors on failed database initialization
Fixes an issue where failing to open a non-existent database in ReadOnly
mode would make you unable to properly initialize it in ReadWrite mode
afterwards due to a hanging lock.
2018-03-17 14:51:58 -07:00
Gyuho Lee d57ee90507
Merge pull request #87 from gyuho/deprecated
Cherry-pick "add tx-copy-deprecated"
2018-03-17 01:10:57 -07:00
Chyroc 32f8e5fee9 add tx-copy-deprecated 2018-03-17 00:58:22 -07:00
Xiang Li 4f5275f4eb
Merge pull request #82 from moderepo/madvise_optional
Madvise optional
2018-02-23 10:40:59 -08:00
Naoki Takano eda393df1e make madvise call optional 2018-02-23 09:54:47 -08:00
Xiang Li b44cfbde69
Merge pull request #80 from rcoelho/close-wait-transactions
Close waits for the transactions to finish
2018-02-14 11:29:54 -08:00
Rodrigo Coelho 584b1a3dba
Breaking the long line 2018-02-14 10:06:29 -02:00
Rodrigo Coelho fafe4b70b5
Close waits for the transactions to finish
DB.Close() actually waits for the transactions to finish now, since the PR 377.
https://github.com/boltdb/bolt/pull/377
2018-02-13 20:02:24 -02:00
Xiang Li ee30b748bc
Merge pull request #73 from mvo5/master
bolt_ppc.go: define `var brokenUnaligned`
2018-01-18 10:15:22 -08:00
Michael Vogt cef3333f2a bolt_ppc.go: define `var brokenUnaligned`
If this var is missing building on the ppc architecture fails.
This PR adds it.
2018-01-18 18:42:37 +01:00
Xiang Li 48ea1b39c2
Merge pull request #65 from zrss/fix-page-cnt
tx: fix the number of pages is incorrectly counted
2017-12-06 17:27:08 -08:00
Xiang Li b4364696a6
Merge pull request #68 from heyitsanthony/sync-silly-if
Remove unnecessary if in batch handling
2017-11-26 15:54:45 -08:00
Tommi Virtanen bcfcdab742 Remove unnecessary if in batch handling
This is safe, as the only place that creates call values always
explicitly sets err. It's a leftover from an earlier iteration of the
code.
2017-11-26 15:02:34 -08:00
Gyu-Ho Lee 32c383e75c
Merge pull request #67 from heyitsanthony/fix-freelist-corruption
Fix freelist corruption on tx.WriteTo
2017-11-16 10:28:16 -08:00
Anthony Romano 41fefe7322 test: check concurrent WriteTo operations aren't corrupted
Reliably triggers consistency check failures on ramdisk without freelist
free fix.
2017-11-16 08:16:58 -08:00
Anthony Romano 386b851495 freelist: set alloc tx for freelist to prior txn
Was causing freelist corruption on tx.WriteTo
2017-11-16 08:16:58 -08:00
Gyu-Ho Lee f4ebd07c33
Merge pull request #66 from jpbetz/freelist-check
Panic if page provided to freelist.read is incorrect page type.
2017-11-16 05:30:16 -08:00
Joe Betz 237a4fcb31 Panic if page provided to freelist.read is incorrect page type. 2017-11-15 15:52:34 -08:00
zhesi.huang 22635d7451 tx: fix the number of pages is not incorrectly counted 2017-11-12 08:40:47 +08:00
Xiang Li 3c6cbfb299
Merge pull request #64 from kwf2030/master
fix funlock error when call db.Close on windows
2017-10-31 18:10:58 -07:00
kwf2030 434419a2a0 fix funlock error when call db.Close on windows 2017-11-01 08:55:55 +08:00
Xiang Li 60725ac8b2
Merge pull request #63 from spacewander/add_boltcli
Add 'boltcli' to the list of projects that use Bolt
2017-10-31 09:40:37 -07:00
spacewander b4c13d4814 Add 'boltcli' to the list of projects that use Bolt 2017-10-29 16:55:51 +08:00
Gyu-Ho Lee 3eac9d3bd8 Merge pull request #57 from gyuho/clean-up
db_test.go: remove temp files after tests
2017-09-28 09:33:06 -07:00
Gyu-Ho Lee 68861c5f87 db_test.go: remove temp files after tests
Was filling up all the disk space in Jenkins VMs.

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-28 01:39:15 -07:00
Xiang Li 54f6fad6e4 Merge pull request #56 from virtualsue/master
Trivial. Removed 'moribund' from README.md
2017-09-27 15:05:50 -07:00
Sue Spence 235a4273ef Removed 'moribund' since some people think it's a bit derogatory towards the original developer. 2017-09-25 13:58:09 +01:00
Xiang Li 700b8ead14 Merge pull request #52 from jpbetz/fix-readonly-check
tx: load freelist on Check() [continuation of PR#49]
2017-09-21 17:10:35 -07:00
Anthony Romano bdfe4158f8 tx: load freelist on Check()
Otherwise, nil dereference on ReadOnly DB

Fixes #45
2017-09-21 16:38:29 -07:00
Xiang Li ebf39dca25 Merge pull request #50 from jpbetz/page-kv-and-full-freelist
Fix CLI tool print entire freelist. Add option to dump leaf element keys/value bytes.
2017-09-20 12:18:59 -07:00
Joe Betz 69918b9e4e Fix bolt CLI tool print entire freelist, and to dump keys/value bytes of leaf elements. 2017-09-20 12:08:57 -07:00
Anthony Romano ba5a58dde0 test tx.Check() on read only db 2017-09-18 16:23:51 -07:00