Commit Graph

1326 Commits (3f7812656f9a07c1c78658ec32110c6afae73e90)

Author SHA1 Message Date
Bin Guo ef2d488d99 Merge redundant codes in node.rebalance
Signed-off-by: Cenk Alti <cenkalti@gmail.com>
2023-03-15 00:22:56 -04:00
mingtingzhang c9c264c9d9 modified freelist_hmap/hashmapGetFreePageIDs with better performance
Signed-off-by: Cenk Alti <cenkalti@gmail.com>
2023-03-15 00:00:26 -04:00
Benjamin Wang 62f5a3f291 cmd: move function copyFile into utils.go
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-15 08:45:45 +08:00
Benjamin Wang 15d561e54f move inode operations(read/write) into package internal/common
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-15 08:44:19 +08:00
Benjamin Wang 0c81eede23
Merge pull request #423 from ahrtr/test_internal_20230314
test: run test cases under `./internal/...`
2023-03-14 18:24:11 +08:00
Benjamin Wang 44cddc6aaf test: run test cases under ./internal/...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-14 15:38:08 +08:00
Benjamin Wang 1ec2237d71
Merge pull request #420 from cenkalti/progress
display progress during benchmark
2023-03-14 12:45:45 +08:00
Benjamin Wang a5e2643ca9
Merge pull request #421 from cenkalti/readme2
Add example for Bucket.Delete() in README.md
2023-03-14 12:44:07 +08:00
Sarthak af055376f6
Add example for Bucket.Delete() in README.md
The example is similar to the examples for `Bucket.Put()` and `Bucket.Get()` functions, so it does not breaks the layout. Signed-off-by: Sarthak2143 <sarthaktomar2143@gmail.com> .

Co-authored-by: Benjamin Wang <wachao@vmware.com>
Signed-off-by: Cenk Alti <cenkalti@gmail.com>
2023-03-13 23:14:42 -04:00
zhangsong ab889e1dfa
display progress during benchmark
Signed-off-by: Cenk Alti <cenkalti@gmail.com>
2023-03-13 23:10:54 -04:00
Piotr Tabor 838586ae65
Merge pull request #416 from jmhbnz/master
Updated go to 1.19.7
2023-03-09 13:18:41 +01:00
James Blair 4e41eab093
Updated go to 1.19.7
Go 1.17 is out of support, this brings bbolt in line with other etcd maintained projects and addresses CVEs with older versions of golang.

Signed-off-by: James Blair <mail@jamesblair.net>
2023-03-09 11:28:24 +13:00
Benjamin Wang ef8fde548e
Merge pull request #415 from ahrtr/page_flags_20230308
Encapsulate the logic of checking the page type
2023-03-08 16:28:57 +08:00
Benjamin Wang a3a9877de6 encapsulate the logic of checking the page type
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-08 10:47:59 +08:00
Piotr Tabor 17b18580c7
Merge pull request #407 from ahrtr/refactor_inode_20230215
Refactor: move inode to internal/common package
2023-03-06 18:07:54 +01:00
Piotr Tabor 1d1d7563f8
Merge pull request #414 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.6.0
Bump golang.org/x/sys from 0.5.0 to 0.6.0
2023-03-06 18:06:20 +01:00
dependabot[bot] 3be1fef0d3
Bump golang.org/x/sys from 0.5.0 to 0.6.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/compare/v0.5.0...v0.6.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-03-06 15:11:52 +00:00
Benjamin Wang f68adfee81 CMD: update leafPageElement to return both key and value directly
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-04 04:58:53 +08:00
Benjamin Wang 852b1df32f refactor: move inode to internal/common package
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-04 04:22:09 +08:00
Benjamin Wang ea511567eb refactor both bolt and guts_cli based on the common package
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-04 04:22:09 +08:00
Benjamin Wang 34595e7231 create a common package
Points:
1. There are lots of duplicated definitions between bolt and
   guts_cli, which is definitely not good.
2. The implementation in guts_cli also has issue, please
   refer to https://github.com/etcd-io/bbolt/issues/391.
   This refactoring can fix the issue.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-04 04:22:09 +08:00
Benjamin Wang 1273ac779e
Merge pull request #412 from etcd-io/dependabot/go_modules/github.com/stretchr/testify-1.8.2
Bump github.com/stretchr/testify from 1.8.1 to 1.8.2
2023-02-28 06:25:18 +08:00
dependabot[bot] 2e25261ce0
Bump github.com/stretchr/testify from 1.8.1 to 1.8.2
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.1...v1.8.2)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 15:12:40 +00:00
Marek Siarkowicz eb39e4c93e Fix redacted format
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-02-20 06:37:36 +08:00
Benjamin Wang 578b94665b update the usage of surgery command
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-02-18 04:43:20 +08:00
dependabot[bot] 340246337c Bump golang.org/x/sys from 0.4.0 to 0.5.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/compare/v0.4.0...v0.5.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-02-14 06:24:30 +08:00
Josh Rickmar 46437cea06 Avoid syscall.Syscall use on OpenBSD
Syscall numbers are not stable on OpenBSD, and hardcoding the msync
syscall number will break bbolt on future versions of OpenBSD.  Use
the libc wrapper provided by golang.org/x/sys/unix instead.

Signed-off-by: Josh Rickmar <jrick@zettaport.com>
2023-02-12 05:47:49 +08:00
caojiamingalan 505fc0f7af complete all cleanup operations in db.close() even if there is an error in the middle
Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
2023-02-11 07:21:13 +08:00
missinglink 287049ea83 compact: add cli flags to enable NoSync option
Signed-off-by: missinglink <insomnia@rcpt.at>
2023-02-02 12:16:15 +08:00
Benjamin Wang 8f4a7e1f92 update the relate date of v1.3.7
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-31 05:27:19 +08:00
Benjamin Wang fc361799ce added summary on the changes in v1.3.7
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-29 20:51:54 +08:00
Benjamin Wang 1651561091 Update changelog-1.3 to prepare for v1.3.7 release
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-29 20:51:54 +08:00
Benjamin Wang 35c4569bf9 revert the signature of tx.Check and add tx.CheckWithStringer
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-29 19:53:07 +08:00
dependabot[bot] afa8b89da8 Bump golangci/golangci-lint-action from 3.3.1 to 3.4.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](0ad9a0988b...08e2f20817)

---
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-01-29 10:58:20 +08:00
dependabot[bot] 046c7b9e5b Bump golang.org/x/sys from 0.3.0 to 0.4.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/compare/v0.3.0...v0.4.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-01-29 10:50:50 +08:00
Marek Siarkowicz 613ea3dffa Add support for using sha256 sum for obfuscating values
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-01-28 07:08:58 +08:00
Benjamin Wang 6ee9f1d9a7
Merge pull request #389 from ahrtr/surgery_write_empty_page_20230120
Add `surgery clear-page` command
2023-01-21 07:09:25 +08:00
Benjamin Wang 834868d65d add 'surgery clear-page' command
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-20 18:46:07 +08:00
Piotr Tabor 774edab623
Merge pull request #387 from uvletter/fix_grow
fix db.grow is unusable when NoFreelistSync is on
2023-01-19 19:21:15 +01:00
luv 460b77759e fix db.grow is unusable when NoFreelistSync is on
Signed-off-by: tian <skylypig@gmail.com>
2023-01-19 22:33:51 +08:00
Benjamin Wang f9051642f7
Merge pull request #383 from ahrtr/failpoint_20230113
Support injecting failpoints to mimic syscall errors
2023-01-19 19:43:10 +08:00
Benjamin Wang 1508097501
Merge pull request #388 from ahrtr/surgery_copy_page_20230118
Add `bbolt surgery copy-page` command
2023-01-19 19:07:05 +08:00
Benjamin Wang d89daae9d5 add 'surgery copy-page' command
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-18 08:40:57 +08:00
Benjamin Wang 8c794d23aa
Merge pull request #386 from ahrtr/unexport_cmds_20230117
unexport all bbolt command structs
2023-01-18 08:12:53 +08:00
Benjamin Wang 645d5e9ea9 unexport all bbolt command structs
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-17 15:07:15 +08:00
Benjamin Wang f10bad3c8f support injecting failpoints and add failpoint github workflow
Implemented first demo "TestFailpoint_MapFail"

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-16 20:32:16 +08:00
Benjamin Wang 6652d8269e
Merge pull request #385 from ahrtr/add_surgery_revert_meta_page_20230116
Add `bbolt surgery revert-meta-page` command
2023-01-16 20:30:24 +08:00
Benjamin Wang ff467f2ff5 addresed review comments
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-16 19:08:53 +08:00
Benjamin Wang 8df4afc24b add 'bbolt surgery revert-meta-page' command
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-16 18:32:41 +08:00
Benjamin Wang da3f312335
Merge pull request #384 from ahrtr/base_command_20230116
move all common fields into baseCommand
2023-01-16 18:23:17 +08:00