1879 Commits

Author SHA1 Message Date
Benjamin Wang
e36e2d26a0
Merge pull request #1027 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.34.0
build(deps): Bump golang.org/x/sys from 0.33.0 to 0.34.0
2025-07-15 20:26:03 +01:00
Benjamin Wang
e0ba597f52
Merge pull request #987 from gangli113/seqdel
add write mode "seq-del"
2025-07-15 15:20:30 +01:00
dependabot[bot]
ef0224dea1
build(deps): Bump golang.org/x/sys from 0.33.0 to 0.34.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.33.0 to 0.34.0.
- [Commits](https://github.com/golang/sys/compare/v0.33.0...v0.34.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-14 17:11:25 +00:00
Benjamin Wang
6babb3faae
Merge pull request #1023 from hwdef/bump-go-1245
chore(main): Bump Go to 1.24.5
2025-07-10 16:35:14 +01:00
hwdef
40fd0f06dd chore(main): Bump Go to 1.24.5
Signed-off-by: hwdef <hwdefcom@outlook.com>
2025-07-10 16:40:58 +08:00
Gang Li
6e90ee7ca7 add write mode "seq-del"
Signed-off-by: Gang Li <ganglica@google.com>
2025-07-10 00:36:17 +00:00
Benjamin Wang
6bee33a18c
Merge pull request #1019 from silentred/migrate-page-item-cmd
cmd: migrate `page-item` command to cobra style
2025-07-09 12:00:04 +01:00
shenmu.wy
6288198fdd cmd: migrate page-item command to cobra style
Signed-off-by: shenmu.wy <shenmu.wy@antfin.com>
2025-07-09 17:05:50 +08:00
Benjamin Wang
4989594225
Merge pull request #1018 from silentred/migrate-dump-cmd
cmd: migrate `dump` command to cobra style
2025-07-08 11:30:45 +01:00
shenmu.wy
290fca35f3 cmd: migrate dump command to cobra style
Signed-off-by: shenmu.wy <shenmu.wy@antfin.com>
2025-07-08 10:20:53 +08:00
Benjamin Wang
e70286b7eb
Merge pull request #1016 from Elbehery/20250701_migrate_keys_cobra
chore(cmd): migrate `keys` command to cobra style
2025-07-07 13:25:27 +01:00
Mustafa Elbehery
c884fa4741 chore(cmd): migrate keys command to cobra style
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2025-07-07 13:06:57 +02:00
Benjamin Wang
b8ae647111
Merge pull request #1015 from Elbehery/20250701_migrate_pages_cobra
chore(cmd): migrate `pages` command to cobra style
2025-07-06 16:39:03 +01:00
Mustafa Elbehery
1b56d8a600 chore(cmd): migrate pages command to cobra style
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2025-07-04 15:47:19 +02:00
Benjamin Wang
fb8144f80b
Merge pull request #1014 from Elbehery/20250701_migrate_stats_cobra
chore(cmd): migrate `stats` command to cobra style
2025-07-04 14:39:47 +01:00
Mustafa Elbehery
96f44720d0 chore(cmd): migrate stats command to cobra style
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>

# Conflicts:
#	cmd/bbolt/command_root.go
2025-07-04 14:10:55 +02:00
Benjamin Wang
9a86ed2ac2
Merge pull request #1012 from silentred/migrate-compact-cmd
cmd: migrate `compact` command to cobra style
2025-07-04 11:55:01 +01:00
shenmu.wy
819ac0a211 cmd: migrate compact command to cobra style
Signed-off-by: shenmu.wy <shenmu.wy@antfin.com>
2025-07-04 17:34:06 +08:00
Benjamin Wang
597f1c262d
Merge pull request #1013 from Elbehery/20250701_migrate_info_cobra
chore(cmd): migrate `info` command to cobra style
2025-07-03 13:17:20 +01:00
Mustafa Elbehery
dcb91a8815 chore(cmd): migrate info command to cobra style
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2025-07-03 12:30:08 +02:00
Benjamin Wang
1373eb35f6
Merge pull request #1010 from Elbehery/20250630_migrate_buckets_cobra
chore(cmd): migrate `buckets`  command to cobra style
2025-07-01 09:58:46 +01:00
Mustafa Elbehery
e26dc6d02f chore(cmd): migrate command to cobra style
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2025-06-30 22:23:25 +02:00
Benjamin Wang
9ae3355817
Merge pull request #1009 from Elbehery/20250627-fix-release-script-macos
chore(release): fix release script for MacOS
2025-06-29 21:34:19 +01:00
Mustafa Elbehery
3019cbc227 chore(release): fix release script for MacOS
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2025-06-27 14:41:36 +02:00
Benjamin Wang
17f3a34828
Merge pull request #1008 from ahrtr/1.4.2
Update v1.4.2's release date
2025-06-27 13:36:51 +01:00
Benjamin Wang
2544d48bd8 Update v1.4.2's release date
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-06-27 11:58:22 +01:00
Benjamin Wang
274c1092a4
Merge pull request #1007 from ahrtr/20250626_meta_changelog
Update changelog to cover the meta page protection fix
2025-06-26 20:38:52 +01:00
Benjamin Wang
81355b44ff
Merge pull request #980 from ivanvc/release-checkout-branch
release: Switch branch to stable branch from script
2025-06-26 13:31:55 +01:00
Benjamin Wang
df4e63a768 Update changelog to cover the meta page protection fix
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-06-26 11:34:23 +01:00
Ivan Valdes
a5955bdb5a
release: narrow down existing tag search
Check for the actual tag by an explicit query, rather than listing all
tags available at the repository.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-06-25 12:25:12 -07:00
Ivan Valdes
979ee92ac7
release: accept release version as argument
Make it consistent with other of our release scripts.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-06-25 12:19:50 -07:00
Ivan Valdes
550aa05cd2
release: Use stage directory to build release
Create a stage directory in the temp file system, and clone the
repository there.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-06-25 11:33:30 -07:00
Benjamin Wang
467bd76e8f
Merge pull request #999 from ivanvc/use-temmplate-for-cross-build-tests
Add template to cross arch build tests
2025-06-25 10:40:57 +01:00
Ivan Valdes
685eda312d
Add template to cross arch build tests
* Create a template to simplify executing tests without repetition.
* Run cross-compilation tests for Windows on Ubuntu (Linux), as every
  platform is being cross-compiled as a sanity check, it could also be
  done using Linux, and simplify the template.
* Remove the GolangCI lint action, as it is linting in Linux (as this is
  not using QEMU, but only cross-compilation), and there's no benefit to
  adding this step, as it's already checked in other workflows.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2025-06-24 15:44:38 -07:00
Benjamin Wang
68b0ba4c9c
Merge pull request #989 from nspcc-dev/metalock
tx: add missing lock on meta page update
2025-06-24 09:33:57 +01:00
Benjamin Wang
be68cc203b
Merge pull request #986 from Elbehery/20250612-use-qemu-github-workflow
chore(CI): Add QEMU based CI Workflow
2025-06-20 16:32:38 +01:00
Mustafa Elbehery
8723401c19 chore(CI): Add QEMU to CI Workflow
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2025-06-19 11:13:23 +02:00
Roman Khimov
249746fef4 tx: add missing lock on meta page update
metalock is supposed to protect meta page, but it looks like the only place
where we're modifying it is not protected in fact. Since page update is not
atomic a concurrent reader (RO transaction) can get an inconsistent page. It's
likely to fall back to the other one in this case, but still we better not
allow this to happen.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2025-06-18 22:27:10 +03:00
Benjamin Wang
092ee98898
Merge pull request #993 from Elbehery/20250615_add_goimport_golangci-lint
chore(CI): add goimports to linter
2025-06-18 09:45:24 +01:00
Benjamin Wang
6a1dfa58fa
Merge pull request #991 from ahrtr/20250615_changelog
Update changelog for 1.4.2 and 1.5.0
2025-06-17 12:57:33 +01:00
Mustafa Elbehery
55e2494a55 chore(CI): add goimports to linter
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2025-06-15 21:51:36 +02:00
Benjamin Wang
01931e86ec Update changelog for 1.4.2 and 1.5.0
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2025-06-15 19:39:02 +01:00
Benjamin Wang
fdf3825aef
Merge pull request #977 from nspcc-dev/optional-statistics
Make statistics optional
2025-06-15 19:37:21 +01:00
Benjamin Wang
fde6016c3c
Merge pull request #988 from Asutorufa/main
fix maxMapSize typo in aix, android, solaris
2025-06-13 09:47:17 +01:00
Asutorufa
f2297c6fad fix maxMapSize typo in aix, android, solaris
Signed-off-by: Asutorufa <16442314+Asutorufa@users.noreply.github.com>
2025-06-13 11:58:56 +08:00
Roman Khimov
87d0cf7deb db: make statistics optional
I think most Bolt users never care about this data, so we're just wasting
time for nothing. This is also one of the exclusive locks that we have on
the View() path. While this patch doesn't change much on its own, because
the other lock is still here (subject to a different patch), once that lock
is removed the difference in concurrent View() test is pretty clear. With
NoStatistics=false:

workers samples min             avg             50%             80%             90%             max
1       10      123.905µs       969.042µs       1.062529ms      1.065585ms      1.071537ms      1.071537ms
10      100     34.636µs        178.176µs       89.7µs          110.439µs       943.753µs       1.055165ms
100     1000    31.79µs         280.166µs       51.358µs        526.992µs       1.034306ms      2.47819ms
1000    10000   30.608µs        818.098µs       86.464µs        935.799µs       2.681115ms      10.595186ms
10000   100000  30.569µs        3.060826ms      64.132µs        6.56151ms       11.199984ms     64.855384ms

NoStatistics=true:

workers samples min             avg             50%             80%             90%             max
1       10      68.049µs        962.039µs       1.060335ms      1.064633ms      1.066087ms      1.066087ms
10      100     34.846µs        315.346µs       90.943µs        862.499µs       1.00516ms       1.08366ms
100     1000    31.45µs         225.53µs        36.88µs         236.63µs        939.115µs       1.466286ms
1000    10000   30.539µs        207.383µs       43.643µs        110.841µs       408.146µs       5.689001ms
10000   100000  30.488µs        152.603µs       39.636µs        90.622µs        145.266µs       9.28235ms

The default behavior is kept for compatibility. In future the option can be
extended to avoid collecting transaction statistics as well.

Now that stats is a pointer we can also revert a part of 26f89a595140f163a4e8a7c86b689990f6335788
and make the structure cleaner.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2025-06-12 13:41:35 +03:00
Benjamin Wang
8919474050
Merge pull request #983 from hwdef/bump-go-1244
Bump Go to 1.24.4
2025-06-12 11:14:29 +01:00
Benjamin Wang
3a492e34dd
Merge pull request #981 from gangli113/test
add page-size and initial-mmap-size flag to bbolt bench cmd
2025-06-12 10:07:20 +01:00
Benjamin Wang
736fd8f003
Merge pull request #982 from ivanvc/fix-arm64-workflow
Run ARM64 test workflow on Ubuntu ARM
2025-06-12 09:38:58 +01:00
hwdef
84f17a44e8 Bump Go to 1.24.4
Signed-off-by: hwdef <hwdefcom@outlook.com>
2025-06-12 16:32:32 +08:00