1385 Commits

Author SHA1 Message Date
Benjamin Wang
31914ea6e8 cmd: add meta page related surgery commands
Two command:
- surgery meta validate
- surgery meta update

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-10-18 16:55:03 +01:00
Benjamin Wang
db45d0d6b1
Merge pull request #571 from monkeyWie/master
feat: adapts to Android 14
2023-10-05 16:57:08 +01:00
liwei
f3bb36466a feat: adpater Android 14
Signed-off-by: liwei <liwei-8466@qq.com>
2023-09-22 10:21:06 +08:00
Benjamin Wang
1105f7573e
Merge pull request #569 from jmhbnz/add-owners-file
Add OWNERS file for bbolt
2023-09-18 11:55:08 +01:00
James Blair
e1400df84a
Add OWNERS file for bbolt.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-09-18 21:21:21 +12:00
Benjamin Wang
c46cb7c114
Merge pull request #565 from ncruces/patch-1
Documentation: remove note that Options.Timeout is Linux/macOS only
2023-09-18 10:11:42 +01:00
Benjamin Wang
e682325982
Merge pull request #566 from dusk125/upgrade-go1.21
Update to go1.21.1
2023-09-15 16:53:12 +01:00
Allen Ray
18ebb97451 Update to go1.21.1
Signed-off-by: Allen Ray <alray@redhat.com>
2023-09-15 09:26:06 -04:00
Nuno Cruces
6340c70371 Documentation: remove note that Options.Timeout is Linux/macOS only
This seems to work on all platforms.
E.g. on Windows it seems to work since 1cb787ee7bfebef44baf98158967a37735e65790.

Signed-off-by: Nuno Cruces <ncruces@users.noreply.github.com>
2023-09-13 14:25:56 +01:00
Benjamin Wang
ead6b854aa
Merge pull request #560 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.12.0
build(deps): Bump golang.org/x/sys from 0.11.0 to 0.12.0
2023-09-06 10:04:33 +01:00
Benjamin Wang
234621207d
Merge pull request #561 from etcd-io/dependabot/github_actions/actions/checkout-4
build(deps): Bump actions/checkout from 3 to 4
2023-09-04 17:36:49 +01:00
dependabot[bot]
686a2a3551
build(deps): Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 15:03:22 +00:00
dependabot[bot]
3c56d130e0
build(deps): Bump golang.org/x/sys from 0.11.0 to 0.12.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/sys/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 14:13:38 +00:00
Benjamin Wang
86daf542e5
Merge pull request #556 from Jeremy-Run/master
delete unnecessary error info
2023-08-23 15:27:20 +08:00
Benjamin Wang
5d7f834a55
Merge pull request #557 from etcd-io/dependabot/github_actions/golangci/golangci-lint-action-3.7.0
build(deps): Bump golangci/golangci-lint-action from 3.6.0 to 3.7.0
2023-08-22 01:28:20 +08:00
dependabot[bot]
aafd6b26fd
build(deps): Bump golangci/golangci-lint-action from 3.6.0 to 3.7.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](639cd343e1...3a91952989)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-21 14:46:26 +00:00
Benjamin Wang
b6690241bd
Merge pull request #555 from jmhbnz/update-to-go-1.20
Update to golang 1.20 minor release
2023-08-21 20:48:45 +08:00
Jeremy
41c23856b2 delete unnecessary error info
Signed-off-by: Jeremy <acm_123@163.com>
2023-08-21 19:13:41 +08:00
James Blair
ca13fd8a2d
Use crypto/rand.Read instead of deprecated math/rand.Read.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-19 22:17:45 +12:00
James Blair
4154f9c642
Remove deprecated rand.Seed calls.
From go 1.20 if Seed is not called, the generator will be seeded randomly at program startup.

Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-19 22:16:51 +12:00
James Blair
ed506da9fd
Update to golang 1.20 minor release.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-19 21:25:39 +12:00
Benjamin Wang
c24bb8568d
Merge pull request #554 from testwill/typo
fix Continuing typo
2023-08-18 23:29:27 +08:00
guoguangwu
393e10e840 fix Continuing typo
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-08-18 22:06:31 +08:00
Benjamin Wang
0e7d8a6fe9
Merge pull request #552 from ishan16696/versionFlag
Added bbolt command line version flag to get runtime information.
2023-08-15 20:11:23 +08:00
Ishan Tyagi
a05608cf29 Added bbolt command line version flag to get runtime information.
Signed-off-by: Ishan Tyagi <ishantyagi25@gmail.com>
2023-08-11 18:16:34 +05:30
Benjamin Wang
59b8453440
Merge pull request #550 from fyfyrchik/heap-alloc-key
bucket: allow to allocate key on stack in Put()
2023-08-11 08:00:04 +01:00
Evgenii Stratonikov
71a59caf31 bucket: allow to allocate key on stack in Put()
As per `go build -gcflags -m ./... 2>&1`:

Old behaviour:
```
./bucket.go:148:31: leaking param: key
./bucket.go:192:42: leaking param: key
./bucket.go:271:22: leaking param: key
```

Now:
```
./bucket.go:148:31: key does not escape
./bucket.go:192:42: key does not escape
./bucket.go:271:22: key does not escape
```

Signed-off-by: Evgenii Stratonikov <fyfyrchik@runbox.com>
2023-08-10 15:25:28 +03:00
Benjamin Wang
0855b9637f
Merge pull request #532 from ahrtr/create_bucket_if_not_exist_20230627
Improve `CreateBucketIfNotExists` to avoid double searching the same key
2023-08-10 12:29:59 +01:00
Benjamin Wang
af45762eef
Merge pull request #549 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.11.0
build(deps): Bump golang.org/x/sys from 0.10.0 to 0.11.0
2023-08-08 14:14:24 +01:00
dependabot[bot]
2bbf2e9972
build(deps): Bump golang.org/x/sys from 0.10.0 to 0.11.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 14:37:14 +00:00
Benjamin Wang
3ed248c4eb Improve CreateBucketIfNotExists to avoid double searching the same key
Benchmark with this change:
BenchmarkBucket_CreateBucketIfNotExists-10    	     123	   9573035 ns/op	   17930 B/op	      37 allocs/op

Benchmark with old implementnation:
BenchmarkBucket_CreateBucketIfNotExists-10    	     121	  10474415 ns/op	   18147 B/op	      46 allocs/op

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-08-07 09:54:26 +01:00
Benjamin Wang
b2a3debdd0
Merge pull request #548 from jmhbnz/master
Updated go to latest patch release 1.19.12
2023-08-06 07:40:51 +01:00
James Blair
84572b19e4
Updated go to latest patch release 1.19.12.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-08-06 08:44:54 +12:00
Benjamin Wang
b7798fd9c1
Merge pull request #547 from johnshajiang/ignore-DS_Store
gitignore: ignore .DS_Store on macOS
2023-08-01 18:01:36 +01:00
John Jiang
51a9dde31e gitignore: ignore .DS_Store on macOS
Signed-off-by: John Jiang <john.sha.jiang@gmail.com>
2023-08-02 00:26:37 +08:00
Benjamin Wang
2478f30edc
Merge pull request #540 from ishan16696/doc/bboltCLI
Documentation: added a doc for bbolt command-line.
2023-08-01 10:44:26 +01:00
Ishan Tyagi
81634ce08c Documentation: added a doc for bbolt command-line.
Signed-off-by: Ishan Tyagi <ishantyagi25@gmail.com>
2023-08-01 13:42:11 +05:30
Benjamin Wang
808aac7750
Merge pull request #546 from vianamjr/failpoint-lack-of-disk-space
tests: add failpoint to simulate lack of disk space
2023-07-31 14:42:04 +01:00
Marcondes Viana
5ddbd0c94e tests: add failpoint to simulate lack of disk space
Signed-off-by: Marcondes Viana <marju10@gmail.com>
2023-07-31 08:23:01 -03:00
Benjamin Wang
d0a911ef40
Merge pull request #545 from ishan16696/openDb/fixfileMode
Open bbolt database with file mode 0600 instead of 0666
2023-07-29 15:49:41 +01:00
Ishan Tyagi
65759b6c75 Fix bbolt command-line commands to open a bbolt database with file mode:0600 instead of 0666.
Fix bbolt command-line command: compact to open a bbolt database with file mode:0400 instead of 0444

Signed-off-by: Ishan Tyagi <ishantyagi25@gmail.com>
2023-07-29 18:35:06 +05:30
Ishan Tyagi
c0b6749ca4 Fix tests to open a bbolt database with file mode:0600 instead of 0666.
Signed-off-by: Ishan Tyagi <ishantyagi25@gmail.com>
2023-07-29 18:06:26 +05:30
Benjamin Wang
39d812baeb
Merge pull request #543 from ishan16696/doc/fixFileMode
Documentation: standardised examples in README.md to use file mode:0600
2023-07-26 07:38:00 +01:00
Ishan Tyagi
7cab6be2ae Documentation: standardised examples in README.md to use file mode:0600
Signed-off-by: Ishan Tyagi <ishantyagi25@gmail.com>
2023-07-26 00:27:38 +05:30
Benjamin Wang
4fab5d4de4
Merge pull request #538 from ishan16696/smallFix
updated bbolt stats help.
2023-07-17 08:26:56 +01:00
Ishan Tyagi
c1a02c4913 updated bbolt stats help.
Signed-off-by: ishan16696 <ishan.tyagi@sap.com>
2023-07-17 09:07:24 +05:30
Benjamin Wang
f697249110
Merge pull request #536 from ahrtr/update_gitignore_20230713
Add binary file /bbolt into .gitignore
2023-07-13 18:48:58 +01:00
Benjamin Wang
df89d0a383 Add binary file /bbolt into .gitignore
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-07-13 16:33:07 +01:00
Benjamin Wang
cf493340c0
Merge pull request #534 from jmhbnz/master
Updated go to latest patch release 1.19.11
2023-07-13 11:48:36 +01:00
James Blair
e1112bf01a
Updated go to latest patch release 1.19.11.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-07-13 21:14:38 +12:00