Marco Peereboom
1727806877
Add support for riscv64 arch. ( #159 )
...
All tests pass.
2019-05-28 01:25:52 +02:00
Tom Payne
4af6cfab70
add OpenFile option ( #158 )
2019-05-10 14:16:40 -07:00
Tom Payne
e65d4d5d27
add go.mod
2019-05-09 20:03:52 -07:00
Iskander (Alex) Sharipov
63597a96ec
remove excessive []byte(s) conversion ( #143 )
...
`copy` permits using to mix `[]byte` and `string` arguments without
explicit conversion. I removed explicit conversion to make the code simpler.
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-01-28 10:11:30 -08:00
Xingyu Chen
8693da9f4d
use segregated hashmap to boost the freelist allocate and release performance ( #141 )
2019-01-25 10:30:05 -08:00
Xingyu Chen
26245f2a4c
fix test in releaserange ( #142 )
2019-01-23 18:34:41 -08:00
Xingyu Chen
f0ad07c7d4
add getFreePageIDs ( #140 )
2019-01-20 23:42:17 -08:00
Xingyu Chen
c5638469ec
update the freelist readIDs ( #139 )
2019-01-20 21:45:53 -08:00
Ross Spencer
22d122a8b9
Add kval-access-language to README.md ( #133 )
2018-12-07 17:02:42 -08:00
John Howard
7ee3ded59d
Fix Windows flock/funlock race ( #122 )
...
Signed-off-by: John Howard <jhoward@microsoft.com>
2018-09-12 13:56:54 -07:00
Gyuho Lee
8987c9740d
Merge pull request #123 from vcaesar/pj-pr
...
The list of project use bolt sorted by initials
2018-09-11 10:37:16 -07:00
vcaesar
bd1da6196b
The list of project use bolt sorted by initials
2018-09-11 13:30:28 -04:00
Michael
25c1c6d9cd
Add reef-pi to project list ( #119 )
2018-09-09 15:15:06 -07:00
Gyuho Lee
27f3df8997
README: bbolt uses semantic versioning
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-28 11:43:12 -07:00
Gyuho Lee
acbc2c426a
travis.yml: skip "errcheck"
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-28 10:18:45 -07:00
Gyuho Lee
b951856120
cmd/bbolt: disable "bbolt" testing for now
...
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-28 08:48:31 -07:00
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