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
Anthony Romano
a148de800f
Merge pull request #33 from heyitsanthony/cov
...
add coverage reports
2017-08-30 15:53:31 -07:00
Anthony Romano
e6a9c1db87
add coverage reports
...
Fixes #11
2017-08-30 14:22:44 -07:00
Anthony Romano
337da347fe
Merge pull request #30 from tylertreat/nosync_option
...
Add NoSync field to Options
2017-08-24 11:00:17 -07:00
Tyler Treat
69fa13f2f1
Add NoSync field to Options
...
This allows enabling NoSync when you only have access to the Options
passed into Open() and not the returned DB (as is frequently the case
with libraries).
2017-08-24 09:35:24 -07:00
Anthony Romano
9c39199963
Merge pull request #32 from heyitsanthony/readme-fork
...
README: explain purpose of bbolt fork
2017-08-23 20:09:27 -07:00
Anthony Romano
92ba45fa6d
README: explain purpose of bbolt fork
...
Fixes #31
2017-08-23 18:55:47 -07:00
Gyu-Ho Lee
e1c92081e5
Merge pull request #28 from gyuho/goreport
...
goreport + minor fixes
2017-08-11 16:27:02 -07:00
Gyu-Ho Lee
c3092301af
*: go vet fixes
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-11 13:47:10 -07:00
Gyu-Ho Lee
9d07787d9f
README: add goreportcard badge
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-11 13:41:18 -07:00
Anthony Romano
dd1d5a7cbd
Merge pull request #24 from heyitsanthony/node-gap
...
Avoid allocate a hole page, when the node size equals to pageSize
2017-08-11 13:25:33 -07:00
Gyu-Ho Lee
2db8c236bc
Merge pull request #27 from gyuho/README
...
README: update links to 'coreos/bbolt'
2017-08-11 13:02:11 -07:00
Gyu-Ho Lee
4d8f7f7f8d
README: update links to 'coreos/bbolt'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-08-11 12:58:44 -07:00
Anthony Romano
3efc7f7ed5
Merge pull request #20 from heyitsanthony/readd-cli-commands
...
Add "buckets", "keys" and "get" CLI commands
2017-08-11 11:23:52 -07:00
Lewis Marshall
0ca39ebe25
Add "buckets", "keys" and "get" CLI commands
...
These were previously removed but I find them quite useful so have
reintroduced them.
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-08-11 11:13:11 -07:00
Lewis Marshall
f07641f90a
Add "dump" and "page" commands to CLI usage
...
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-08-11 11:12:22 -07:00
Anthony Romano
533739c662
Merge pull request #17 from heyitsanthony/fix543
...
Fix issue #543 'bolt bench crashes'
2017-08-11 10:43:53 -07:00
Anthony Romano
9fc2cf177d
Merge pull request #23 from heyitsanthony/del-nonexisting
...
Fix deletion of non-existing keys
2017-08-11 10:43:32 -07:00
Anthony Romano
a6c45c18c3
Merge pull request #16 from heyitsanthony/config-page-size
...
Options.PageSize
2017-08-11 10:43:09 -07:00
Anthony Romano
2fe83be160
Merge pull request #19 from heyitsanthony/skip-freelist-read
...
do not read freelist if database opened readonly
2017-08-11 10:11:03 -07:00