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
Anthony Romano
27600282c6
Merge pull request #44 from lorneli/bbolt_tx
...
tx: just close file once in WriteTo function
2017-09-14 00:21:27 -07:00
Anthony Romano
fb37144b69
Merge pull request #48 from heyitsanthony/fix-fmt-test
...
*: fix gofmt errors and makefile test
2017-09-14 00:20:41 -07:00
Anthony Romano
e39821f3de
*: fix gofmt errors and makefile test
2017-09-13 14:38:05 -07:00
lorneli
53a930f1e1
tx: just close file once in WriteTo function
...
WriteTo function closes file twice in normal path previously.
2017-09-13 17:48:18 +08:00
Xiang Li
a4199f8f4d
Merge pull request #41 from lorneli/bbolt_db
...
db: return t.Rollback directly in the end of View function
2017-09-12 14:58:19 -07:00
Anthony Romano
63f0e073f3
Merge pull request #46 from lorneli/bbolt_db_test
...
add db test in read-only mode
2017-09-12 14:04:50 -07:00
Anthony Romano
cca7a90426
Merge pull request #43 from lorneli/bbolt_seek
...
tx: use io.SeekStart in WriteTo function
2017-09-12 13:48:03 -07:00
lorneli
ea18f34f9d
db: return t.Rollback directly in the end of View function
...
Make return line of db.View corresponding with db.Update.
2017-09-12 21:40:59 +08:00
lorneli
d294ec8a42
db: add test in read-only mode
2017-09-12 20:04:55 +08:00
Xiang Li
4d3ab93ca9
Merge pull request #37 from jpbetz/tx-tests
...
Improve test coverage for releaseRange rollbacks.
2017-09-11 14:30:52 -07:00
Joe Betz
d72f7607a6
Improve test coverage for releaseRange rollbacks.
2017-09-11 12:01:14 -07:00
lorneli
4ce1b5e579
tx: use io.SeekStart in WriteTo function
...
Const os.SEEK_SET is deprecated.
2017-09-11 12:53:41 +08:00
Xiang Li
4ff482b44e
Merge pull request #36 from jpbetz/freelist-tests
...
Increase freelist.releaseRange unit test coverage.
2017-09-08 11:51:36 -07:00
Joe Betz
9245fa7732
Increase freelist.releaseRange unit test coverage.
2017-09-08 10:33:46 -07:00
Raphael Geronimi
3a49aacce1
Added support for no timeout locks on db files ( #35 )
...
No longer unconditionally sleeps if file lock is already held
2017-09-06 14:24:56 -07:00