1033 Commits

Author SHA1 Message Date
Benjamin Wang
307b638af3
Merge pull request #350 from ahrtr/update_cache_20221124
change freelist.cache from map[pgid]bool to map[pgid]struct{}
2022-12-16 06:13:34 +08:00
Benjamin Wang
020684ea1e
Merge pull request #315 from missinglink/enable-main-test
cmd/bbolt: re-enable "bbolt" testing
2022-11-30 18:40:10 +08:00
missinglink
e7e1f0c05a cmd/bbolt: re-enable "bbolt" testing
Signed-off-by: missinglink <insomnia@rcpt.at>
2022-11-30 11:20:27 +01:00
Benjamin Wang
89c1e714f1
Merge pull request #341 from dchaofei/fix_cursor_last
fix(cursor): `Last` method needs skip empty pages
2022-11-30 10:13:14 +08:00
Benjamin Wang
70e7654959 change freelist.cache from map[pgid]bool to map[pgid]struct{}
We just need to cache a list of freepage ID, and don't dare what's
the value (true or false) at all, so changed the map's value from
bool to struct{}.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-11-24 16:06:38 +08:00
dchaofei
f1918806b2 fix(cursor): Last needs skip empty pages
Signed-off-by: dchaofei <dchaofei@163.com>
2022-11-18 14:25:48 +08:00
Marek Siarkowicz
eedea6cb26
Merge pull request #347 from ahrtr/add_changelog
add changelog for boltDB
2022-11-14 12:41:33 +01:00
Benjamin Wang
f4160e70b0 add changelog for boltDB
Added a changelog file for 1.3.x, and planning to release
1.3.7 with a detailed changelog for users reference.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-11-14 18:42:44 +08:00
Marek Siarkowicz
c5901d2879
Merge pull request #346 from ahrtr/bump_sys_20221113
bump golang.org/x/sys to v0.2.0
2022-11-13 12:21:35 +01:00
Benjamin Wang
7591807117 bump golang.org/x/sys to v0.2.0
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-11-13 13:34:17 +08:00
Marek Siarkowicz
3a8b7dc2c8
Merge pull request #343 from mrueg/ci-lint
Enable lint in github actions
2022-11-08 22:29:48 +01:00
Manuel Rüger
33c86c78ca .github: Enable lint
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-10-20 22:47:35 +02:00
Manuel Rüger
b2cf45b995 .github: Update actions to latest version
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-10-20 22:33:49 +02:00
Marek Siarkowicz
fa9dfc65da
Merge pull request #342 from mrueg/gofmt
Run gofmt
2022-10-20 22:12:36 +02:00
Manuel Rüger
9b606419b1 Run gofmt
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2022-10-20 21:09:53 +02:00
Marek Siarkowicz
00cd6970d0
Merge pull request #321 from mrueg/github-actions
Move to Github Actions / Golangci-Lint
2022-10-19 11:30:18 +02:00
Manuel Rüger
ff70d213eb .github: Move from travis to github actions 2022-03-26 00:30:46 +01:00
Manuel Rüger
fd6c0aa81a Makefile: Move to golangci-lint 2022-03-26 00:28:02 +01:00
Holger Bartnick
fd5535f71f
support sub buckets in get+keys (#295)
add possibility to get keys and values of sub buckets
2022-02-25 20:50:46 -08:00
Benjamin
d5db64bdbf
upgrade golang to 1.17 and replace iouitl with io and os (#297) 2022-01-29 19:28:06 -08:00
liuxiang88
7d9f2ecba1
Add support for loong64 arch. (#303) 2022-01-28 18:38:50 -08:00
Peter Johnson
9b8a60db84
compact: open src file readonly (#292) 2022-01-28 18:37:59 -08:00
chunming.dong
f84fe98fde
fix lmdb link (#300) 2022-01-28 18:32:44 -08:00
Piotr Tabor
b18879eb6c
Merge pull request #283 from tklauser/lock-unlock-x-sys-windows
Use `golang.org/x/sys/windows` for `FileLockEx`/`UnlockFileEx`
2021-07-02 09:56:20 +02:00
Tobias Klauser
805eb40217 Use golang.org/x/sys/windows for FileLockEx/UnlockFileEx
Use the FileLockEx and UnlockFileEx wrappers and the corresponding
LOCKFILE_* and the ERROR_LOCK_VIOLATION error constants from the
golang.org/x/sys/windows package rather than implementing these in the
package.
2021-06-25 14:57:28 +02:00
JmPotato
685b13a4ef
Clean and simplify some code (#279)
* Clean and simplify some code

Signed-off-by: JmPotato <ghzpotato@gmail.com>

* Remove unused Makefile content

Signed-off-by: JmPotato <ghzpotato@gmail.com>
v1.3.6
2021-05-22 23:29:23 -07:00
Piotr Tabor
90fdc8d162
Merge pull request #223 from huahang/patch
ignore goland ide generated files
2021-04-26 23:07:57 +02:00
Piotr Tabor
9c92be978a
Merge pull request #273 from wpedrak/mlock-flag
Add `Mlock` flag.
2021-04-26 22:55:25 +02:00
qingyunha
d043936a71
cmd/bbolt: pagesCommand no need db.Update (#226)
Co-authored-by: Tao Qingyun <taoqy@ls-a.me>
2021-04-23 17:41:42 -07:00
Michael Hendricks
615d5f6d3f
Replace bolt with bbolt in command line usage (#235)
The bbolt command line tool was renamed after the fork, but its usage output still used the old name.
2021-04-23 17:41:22 -07:00
neza2017
1d7842a624
replace buf[:] with buf (#238) 2021-04-23 17:38:27 -07:00
Michael Hendricks
126f21b002
Make sure failed tests report their exit code (#240)
Commit 72c1660c13cb8cf0d590d91fb03625a68e53900f introduced TestMain, but forgot to call os.Exit with the value returned from m.Run  This causes "go test" to exit with status 0, even if tests fail.  Adding os.Exit to TestMain makes sure the success/failure of tests is correctly reported through the exit code.
2021-04-23 17:38:02 -07:00
Xiang Li
35345c50ae
Merge branch 'master' into patch 2021-04-23 17:35:38 -07:00
Julien Ammous
8e7d6335c9
remove dead links (#242)
* remove dead link

the url points towards a catch all domain

* removed dead link
2021-04-23 17:34:06 -07:00
zc310
10ac1b3d40
Add BoltDB Viewer to projects section in README (#255)
Co-authored-by: zc310.tech <support@zc310.tech>
2021-04-23 17:33:28 -07:00
wpedrak
658af3de0d Mlock flag tests 2021-04-23 14:41:12 +02:00
Piotr Tabor
9c5c4ad0ae
Merge pull request #274 from wpedrak/speed-up-short-tests
Skip few long running tests in `-short` mode
2021-04-23 13:50:49 +02:00
wpedrak
c69165412d Skip few long running tests in -short mode 2021-04-23 13:10:08 +02:00
wpedrak
ed2436f1f8 Add Mlock flag.
`Mlock` flag will cause mlock on db file which will prevent memory swapping of it. Motivation of this commit (etcd): https://github.com/etcd-io/etcd/pull/12750
2021-04-22 16:01:45 +02:00
Makdon
116fbcd490
Avoid unnecessary conversions (#270) 2021-04-21 11:45:35 -07:00
Makdon
8c171443bc
tx: remove outdated comment (#271)
After commit #37e96de, it reports errs in the panic

Co-authored-by: makdonmai(麦栋铖) <makdonmai@wesure.cn>
2021-04-16 14:42:49 -07:00
Piotr Tabor
5082d3bbc2
Merge pull request #243 from tklauser/madvise-x-sys-unix
Use madvise syscall wrapper from golang.org/x/sys/unix
2021-03-24 18:22:49 +01:00
Piotr Tabor
0f477ce770
Merge pull request #254 from lzhfromustc/12_9_GL
test: add buffer to a channel to avoid goroutine leak
2021-03-24 18:20:45 +01:00
lzhfromustc
981093d53c test: add buffer to a channel to avoid the goroutine leak 2021-03-24 11:43:11 -04:00
Piotr Tabor
6565e9dd89
Merge pull request #264 from zouyee/instead
Use WriteTo() instead
2021-03-16 09:25:19 +01:00
zounengren
cc6381f7d5 Use WriteTo() instead 2021-03-16 15:59:07 +08:00
Piotr Tabor
8f715c0917
Merge pull request #259 from jrapoport/patch-1
Add Chestnut to os projects in README.md
2021-03-04 18:04:46 +01:00
Piotr Tabor
4e3eed0f9e
Merge pull request #248 from andrewpmartinez/expose.compact
fix etcd-io/bbolt#247 move compact logic
2021-03-04 18:03:55 +01:00
jrapoport
a737c40a29
Add Chestnut to os projects in README.md
added Chestnut to the list of open source projects that use bbolt.
https://github.com/jrapoport/chestnut
2021-01-13 00:06:58 -08:00
Andrew Martinez
d4a4aebb9a ignore .idea folder, go to 1.15 2020-10-22 10:18:36 -04:00