chore: update README.md with correct links and badges (#2239)

**Description**

Updated links

Closes #2238
This commit is contained in:
Matthew McNeely
2025-12-10 22:11:18 +00:00
committed by GitHub
parent fe1a22dc6b
commit 56b2d31d75
113 changed files with 247 additions and 264 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Badger Community Support
url: https://discord.hypermode.com
url: https://github.com/orgs/dgraph-io/discussions
about: Please ask and answer questions here
-2
View File
@@ -8,8 +8,6 @@ Please explain the changes you made here.
- [ ] For all _code_ changes, an entry added to the `CHANGELOG.md` file describing and linking to
this PR
- [ ] Tests added for new functionality, or regression tests for bug fixes added as applicable
- [ ] For public APIs, new features, etc., PR on [docs repo](https://github.com/hypermodeinc/docs)
staged and linked here
**Instructions**
+5 -7
View File
@@ -1,12 +1,10 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>hypermodeinc/renovate-config"],
"extends": ["local>dgraph-io/renovate-config"],
"rangeStrategy": "widen",
"packageRules": [
{
"matchManagers": ["gomod"],
"matchDepNames": ["go"],
"enabled": false
}
]
{ "matchManagers": ["gomod"], "matchPackageNames": ["go"], "enabled": false },
{ "matchManagers": ["gomod"], "matchDepNames": ["go"], "enabled": false }
],
"ignoreDeps": ["go"]
}
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
- name: Checkout Dgraph repo
uses: actions/checkout@v5
with:
repository: hypermodeinc/dgraph
repository: dgraph-io/dgraph
ref: main
- name: Set up Go
uses: actions/setup-go@v6
+1 -1
View File
@@ -11,4 +11,4 @@ permissions:
jobs:
trunk-code-quality:
name: Trunk Code Quality
uses: hypermodeinc/.github/.github/workflows/trunk.yml@main
uses: dgraph-io/.github/.github/workflows/trunk.yml@main
+3 -5
View File
@@ -9,22 +9,20 @@ cli:
plugins:
sources:
- id: trunk
ref: v1.7.1
ref: v1.7.4
uri: https://github.com/trunk-io/plugins
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
runtimes:
enabled:
- go@1.24.5
- node@22.16.0
- python@3.10.8
- go@1.25.5
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
ignore:
- linters: [ALL]
paths:
- "*.pb.go"
- pb/*.pb.go
enabled:
- golangci-lint2@2.4.0
- trivy@0.64.1
+90 -100
View File
@@ -26,48 +26,46 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- docs: Add pagination explanation to docs (#2134)
- Fix build for GOARCH=wasm with GOOS=js or GOOS=wasip1 (#2048)
**Full Changelog**: https://github.com/hypermodeinc/badger/compare/v4.5.0...v4.5.1
**Full Changelog**: https://github.com/dgraph-io/badger/compare/v4.5.0...v4.5.1
## [4.5.0] - 2024-11-29
- fix the cd pipeline by @mangalaman93 in https://github.com/hypermodeinc/badger/pull/2127
- fix the cd pipeline by @mangalaman93 in https://github.com/dgraph-io/badger/pull/2127
- chore(deps): bump the minor group with 2 updates by @dependabot in
https://github.com/hypermodeinc/badger/pull/2128
https://github.com/dgraph-io/badger/pull/2128
- chore(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 in the minor group by
@dependabot in https://github.com/hypermodeinc/badger/pull/2130
- upgrade protobuf library by @shivaji-kharse in https://github.com/hypermodeinc/badger/pull/2131
@dependabot in https://github.com/dgraph-io/badger/pull/2130
- upgrade protobuf library by @shivaji-kharse in https://github.com/dgraph-io/badger/pull/2131
**Full Changelog**: https://github.com/hypermodeinc/badger/compare/v4.4.0...v4.5.0
**Full Changelog**: https://github.com/dgraph-io/badger/compare/v4.4.0...v4.5.0
## [4.4.0] - 2024-10-26
- retract v4.3.0 due to #2121 and #2113, upgrade to Go v1.23, use ristretto v2 in
https://github.com/hypermodeinc/badger/pull/2122
- Allow stream custom maxsize per batch in https://github.com/hypermodeinc/badger/pull/2063
https://github.com/dgraph-io/badger/pull/2122
- Allow stream custom maxsize per batch in https://github.com/dgraph-io/badger/pull/2063
- chore(deps): bump github.com/klauspost/compress from 1.17.10 to 1.17.11 in the patch group in
https://github.com/hypermodeinc/badger/pull/2120
- fix: sentinel errors should not have stack traces in
https://github.com/hypermodeinc/badger/pull/2042
- chore(deps): bump the minor group with 2 updates in
https://github.com/hypermodeinc/badger/pull/2119
https://github.com/dgraph-io/badger/pull/2120
- fix: sentinel errors should not have stack traces in https://github.com/dgraph-io/badger/pull/2042
- chore(deps): bump the minor group with 2 updates in https://github.com/dgraph-io/badger/pull/2119
**Full Changelog**: https://github.com/hypermodeinc/badger/compare/v4.3.1...v4.4.0
**Full Changelog**: https://github.com/dgraph-io/badger/compare/v4.3.1...v4.4.0
## [4.3.1] - 2024-10-06
- chore: update docs links by @ryanfoxtyler in https://github.com/hypermodeinc/badger/pull/2097
- chore: update docs links by @ryanfoxtyler in https://github.com/dgraph-io/badger/pull/2097
- chore(deps): bump golang.org/x/sys from 0.24.0 to 0.25.0 in the minor group by @dependabot in
https://github.com/hypermodeinc/badger/pull/2100
https://github.com/dgraph-io/badger/pull/2100
- chore(deps): bump golang.org/x/net from 0.28.0 to 0.29.0 in the minor group by @dependabot in
https://github.com/hypermodeinc/badger/pull/2106
https://github.com/dgraph-io/badger/pull/2106
- fix: fix reverse iterator broken by seek by @harshil-goel in
https://github.com/hypermodeinc/badger/pull/2109
https://github.com/dgraph-io/badger/pull/2109
- chore(deps): bump github.com/klauspost/compress from 1.17.9 to 1.17.10 in the patch group by
@dependabot in https://github.com/hypermodeinc/badger/pull/2114
- chore(deps): bump github.com/hypermodeinc/ristretto from 0.1.2-0.20240116140435-c67e07994f91 to
1.0.0 by @dependabot in https://github.com/hypermodeinc/badger/pull/2112
@dependabot in https://github.com/dgraph-io/badger/pull/2114
- chore(deps): bump github.com/dgraph-io/ristretto from 0.1.2-0.20240116140435-c67e07994f91 to 1.0.0
by @dependabot in https://github.com/dgraph-io/badger/pull/2112
**Full Changelog**: https://github.com/hypermodeinc/badger/compare/v4.3.0...v4.3.1
**Full Changelog**: https://github.com/dgraph-io/badger/compare/v4.3.0...v4.3.1
## [4.3.0] - 2024-08-29
@@ -77,75 +75,75 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
**Fixes**
- chore(changelog): add a missed entry in CHANGELOG for v4.2.0 by @mangalaman93 in
https://github.com/hypermodeinc/badger/pull/1988
https://github.com/dgraph-io/badger/pull/1988
- update README with project KVS using badger by @tauraamui in
https://github.com/hypermodeinc/badger/pull/1989
https://github.com/dgraph-io/badger/pull/1989
- fix edge case for watermark when index is zero by @mangalaman93 in
https://github.com/hypermodeinc/badger/pull/1999
https://github.com/dgraph-io/badger/pull/1999
- upgrade spf13/cobra to version v1.7.0 by @mangalaman93 in
https://github.com/hypermodeinc/badger/pull/2001
- chore: update readme by @joshua-goldstein in https://github.com/hypermodeinc/badger/pull/2011
https://github.com/dgraph-io/badger/pull/2001
- chore: update readme by @joshua-goldstein in https://github.com/dgraph-io/badger/pull/2011
- perf: upgrade compress package test and benchmark. by @siddhant2001 in
https://github.com/hypermodeinc/badger/pull/2009
https://github.com/dgraph-io/badger/pull/2009
- fix(Transactions): Fix resource consumption on empty write transaction by @Zach-Johnson in
https://github.com/hypermodeinc/badger/pull/2018
https://github.com/dgraph-io/badger/pull/2018
- chore(deps): bump golang.org/x/net from 0.7.0 to 0.17.0 by @dependabot in
https://github.com/hypermodeinc/badger/pull/2017
https://github.com/dgraph-io/badger/pull/2017
- perf(compactor): optimize allocations: use buffer for priorities by @deff7 in
https://github.com/hypermodeinc/badger/pull/2006
https://github.com/dgraph-io/badger/pull/2006
- fix(Transaction): discard empty transactions on CommitWith by @Wondertan in
https://github.com/hypermodeinc/badger/pull/2031
https://github.com/dgraph-io/badger/pull/2031
- fix(levelHandler): use lock for levelHandler sort tables instead of rlock by @xgzlucario in
https://github.com/hypermodeinc/badger/pull/2034
https://github.com/dgraph-io/badger/pull/2034
- Docs: update README with project LLS using badger by @Boc-chi-no in
https://github.com/hypermodeinc/badger/pull/2032
https://github.com/dgraph-io/badger/pull/2032
- chore: MaxTableSize has been renamed to BaseTableSize by @mitar in
https://github.com/hypermodeinc/badger/pull/2038
- Update CODEOWNERS by @ryanfoxtyler in https://github.com/hypermodeinc/badger/pull/2043
- Chore(): add Stale Action by @ryanfoxtyler in https://github.com/hypermodeinc/badger/pull/2070
https://github.com/dgraph-io/badger/pull/2038
- Update CODEOWNERS by @ryanfoxtyler in https://github.com/dgraph-io/badger/pull/2043
- Chore(): add Stale Action by @ryanfoxtyler in https://github.com/dgraph-io/badger/pull/2070
- Update ristretto and refactor for use of generics by @paralin in
https://github.com/hypermodeinc/badger/pull/2047
- chore: Remove obsolete comment by @mitar in https://github.com/hypermodeinc/badger/pull/2039
https://github.com/dgraph-io/badger/pull/2047
- chore: Remove obsolete comment by @mitar in https://github.com/dgraph-io/badger/pull/2039
- chore(Docs): Update jQuery 3.2.1 to 3.7.1 by @kokizzu in
https://github.com/hypermodeinc/badger/pull/2023
https://github.com/dgraph-io/badger/pull/2023
- chore(deps): bump the go_modules group with 3 updates by @dependabot in
https://github.com/hypermodeinc/badger/pull/2074
- docs(): update docs path by @ryanfoxtyler in https://github.com/hypermodeinc/badger/pull/2076
- perf: fix operation in seek by @harshil-goel in https://github.com/hypermodeinc/badger/pull/2077
- Add lakeFS to README.md by @N-o-Z in https://github.com/hypermodeinc/badger/pull/2078
- chore(): add Dependabot by @ryanfoxtyler in https://github.com/hypermodeinc/badger/pull/2080
https://github.com/dgraph-io/badger/pull/2074
- docs(): update docs path by @ryanfoxtyler in https://github.com/dgraph-io/badger/pull/2076
- perf: fix operation in seek by @harshil-goel in https://github.com/dgraph-io/badger/pull/2077
- Add lakeFS to README.md by @N-o-Z in https://github.com/dgraph-io/badger/pull/2078
- chore(): add Dependabot by @ryanfoxtyler in https://github.com/dgraph-io/badger/pull/2080
- chore(deps): bump golangci/golangci-lint-action from 4 to 6 by @dependabot in
https://github.com/hypermodeinc/badger/pull/2083
https://github.com/dgraph-io/badger/pull/2083
- chore(deps): bump actions/upload-artifact from 3 to 4 by @dependabot in
https://github.com/hypermodeinc/badger/pull/2081
https://github.com/dgraph-io/badger/pull/2081
- chore(deps): bump github/codeql-action from 2 to 3 by @dependabot in
https://github.com/hypermodeinc/badger/pull/2082
https://github.com/dgraph-io/badger/pull/2082
- chore(deps): bump the minor group with 7 updates by @dependabot in
https://github.com/hypermodeinc/badger/pull/2089
- Action Manager by @madhu72 in https://github.com/hypermodeinc/badger/pull/2050
https://github.com/dgraph-io/badger/pull/2089
- Action Manager by @madhu72 in https://github.com/dgraph-io/badger/pull/2050
- chore(deps): bump golang.org/x/sys from 0.23.0 to 0.24.0 in the minor group by @dependabot in
https://github.com/hypermodeinc/badger/pull/2091
https://github.com/dgraph-io/badger/pull/2091
- chore(deps): bump github.com/golang/protobuf from 1.5.3 to 1.5.4 in the patch group by @dependabot
in https://github.com/hypermodeinc/badger/pull/2090
- chore: fix some comments by @dufucun in https://github.com/hypermodeinc/badger/pull/2092
in https://github.com/dgraph-io/badger/pull/2090
- chore: fix some comments by @dufucun in https://github.com/dgraph-io/badger/pull/2092
- chore(deps): bump github.com/google/flatbuffers from 1.12.1 to 24.3.25+incompatible by @dependabot
in https://github.com/hypermodeinc/badger/pull/2084
in https://github.com/dgraph-io/badger/pull/2084
**CI**
- ci: change cron frequency to fix ghost jobs by @joshua-goldstein in
https://github.com/hypermodeinc/badger/pull/2010
https://github.com/dgraph-io/badger/pull/2010
- fix(CI): Update to pull_request trigger by @ryanfoxtyler in
https://github.com/hypermodeinc/badger/pull/2056
- ci/cd optimization by @ryanfoxtyler in https://github.com/hypermodeinc/badger/pull/2051
- fix(cd): fixed cd pipeline by @harshil-goel in https://github.com/hypermodeinc/badger/pull/2093
- fix(cd): change name by @harshil-goel in https://github.com/hypermodeinc/badger/pull/2094
https://github.com/dgraph-io/badger/pull/2056
- ci/cd optimization by @ryanfoxtyler in https://github.com/dgraph-io/badger/pull/2051
- fix(cd): fixed cd pipeline by @harshil-goel in https://github.com/dgraph-io/badger/pull/2093
- fix(cd): change name by @harshil-goel in https://github.com/dgraph-io/badger/pull/2094
- fix(cd): added more debug things to cd by @harshil-goel in
https://github.com/hypermodeinc/badger/pull/2095
https://github.com/dgraph-io/badger/pull/2095
- fix(cd): removing some debug items by @harshil-goel in
https://github.com/hypermodeinc/badger/pull/2096
https://github.com/dgraph-io/badger/pull/2096
**Full Changelog**: https://github.com/hypermodeinc/badger/compare/v4.2.0...v4.3.0
**Full Changelog**: https://github.com/dgraph-io/badger/compare/v4.2.0...v4.3.0
## [4.2.0] - 2023-08-03
@@ -182,7 +180,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
This release adds support for incremental stream writer. We also do some cleanup in the docs and
resolve some CI issues for community PR's. We resolve high and medium CVE's and fix
[#1833](https://github.com/hypermodeinc/badger/issues/1833).
[#1833](https://github.com/dgraph-io/badger/issues/1833).
**Features**
@@ -191,7 +189,7 @@ resolve some CI issues for community PR's. We resolve high and medium CVE's and
**Fixes**
- chore: upgrade xxhash from v1.1.0 to v2.1.2 (#1910) (fixes
[#1833](https://github.com/hypermodeinc/badger/issues/1833))
[#1833](https://github.com/dgraph-io/badger/issues/1833))
**Security**
@@ -199,13 +197,13 @@ resolve some CI issues for community PR's. We resolve high and medium CVE's and
**CVEs**
- [CVE-2021-31525](https://github.com/hypermodeinc/badger/security/dependabot/7)
- [CVE-2022-41723](https://github.com/hypermodeinc/badger/security/dependabot/4)
- [CVE-2022-27664](https://github.com/hypermodeinc/badger/security/dependabot/5)
- [CVE-2021-33194](https://github.com/hypermodeinc/badger/security/dependabot/9)
- [CVE-2022-41723](https://github.com/hypermodeinc/badger/security/dependabot/13)
- [CVE-2021-33194](https://github.com/hypermodeinc/badger/security/dependabot/16)
- [CVE-2021-38561](https://github.com/hypermodeinc/badger/security/dependabot/8)
- [CVE-2021-31525](https://github.com/dgraph-io/badger/security/dependabot/7)
- [CVE-2022-41723](https://github.com/dgraph-io/badger/security/dependabot/4)
- [CVE-2022-27664](https://github.com/dgraph-io/badger/security/dependabot/5)
- [CVE-2021-33194](https://github.com/dgraph-io/badger/security/dependabot/9)
- [CVE-2022-41723](https://github.com/dgraph-io/badger/security/dependabot/13)
- [CVE-2021-33194](https://github.com/dgraph-io/badger/security/dependabot/16)
- [CVE-2021-38561](https://github.com/dgraph-io/badger/security/dependabot/8)
**Chores**
@@ -674,7 +672,6 @@ This sections lists the changes which were reverted because of non-reproducible
**New APIs**
- badger.Options
- WithInMemory (f5b6321)
- WithZSTDCompressionLevel (3eb4e72)
@@ -706,7 +703,6 @@ This sections lists the changes which were reverted because of non-reproducible
**New APIs**
- badger.DB
- NewWriteBatchAt (7f43769)
- CacheMetrics (b9056f1)
@@ -784,7 +780,6 @@ _Note_: The hashes in parentheses correspond to the commits that impacted the gi
**New APIs**
- badger.DB
- DropPrefix (291295e)
- Flatten (7e41bba)
- KeySplits (4751ef1)
@@ -795,30 +790,25 @@ _Note_: The hashes in parentheses correspond to the commits that impacted the gi
- Sync (851e462)
- badger.DefaultOptions() and badger.LSMOnlyOptions() (91ce687)
- badger.Options.WithX methods
- badger.Entry (e9447c9)
- NewEntry
- WithMeta
- WithDiscard
- WithTTL
- badger.Item
- KeySize (fd59907)
- ValueSize (5242a99)
- badger.IteratorOptions
- PickTable (7d46029, 49a49e3)
- Prefix (7d46029)
- badger.Logger (fbb2778)
- badger.Options
- CompactL0OnClose (7e41bba)
- Logger (3f66663)
- LogRotatesToFlush (2237832)
@@ -890,7 +880,7 @@ Bug Fixes:
- Fix for infinite yieldItemValue recursion. #503
- Fix recursive addition of `badgerMove` prefix.
https://github.com/hypermodeinc/badger/commit/2e3a32f0ccac3066fb4206b28deb39c210c5266f
https://github.com/dgraph-io/badger/commit/2e3a32f0ccac3066fb4206b28deb39c210c5266f
- Use file size based window size for sampling, instead of fixing it to 10MB. #501
Cleanup:
@@ -957,23 +947,23 @@ Bug fix:
- Fix an uint16 overflow when resizing key slice
[Unreleased]: https://github.com/hypermodeinc/badger/compare/v2.2007.2...HEAD
[2.2007.2]: https://github.com/hypermodeinc/badger/compare/v2.2007.1...v2.2007.2
[2.2007.1]: https://github.com/hypermodeinc/badger/compare/v2.2007.0...v2.2007.1
[2.2007.0]: https://github.com/hypermodeinc/badger/compare/v2.0.3...v2.2007.0
[2.0.3]: https://github.com/hypermodeinc/badger/compare/v2.0.2...v2.0.3
[2.0.2]: https://github.com/hypermodeinc/badger/compare/v2.0.1...v2.0.2
[2.0.1]: https://github.com/hypermodeinc/badger/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/hypermodeinc/badger/compare/v1.6.0...v2.0.0
[1.6.0]: https://github.com/hypermodeinc/badger/compare/v1.5.5...v1.6.0
[1.5.5]: https://github.com/hypermodeinc/badger/compare/v1.5.3...v1.5.5
[1.5.3]: https://github.com/hypermodeinc/badger/compare/v1.5.2...v1.5.3
[1.5.2]: https://github.com/hypermodeinc/badger/compare/v1.5.1...v1.5.2
[1.5.1]: https://github.com/hypermodeinc/badger/compare/v1.5.0...v1.5.1
[1.5.0]: https://github.com/hypermodeinc/badger/compare/v1.4.0...v1.5.0
[1.4.0]: https://github.com/hypermodeinc/badger/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/hypermodeinc/badger/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/hypermodeinc/badger/compare/v1.1.1...v1.2.0
[1.1.1]: https://github.com/hypermodeinc/badger/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/hypermodeinc/badger/compare/v1.0.1...v1.1.0
[1.0.1]: https://github.com/hypermodeinc/badger/compare/v1.0.0...v1.0.1
[Unreleased]: https://github.com/dgraph-io/badger/compare/v2.2007.2...HEAD
[2.2007.2]: https://github.com/dgraph-io/badger/compare/v2.2007.1...v2.2007.2
[2.2007.1]: https://github.com/dgraph-io/badger/compare/v2.2007.0...v2.2007.1
[2.2007.0]: https://github.com/dgraph-io/badger/compare/v2.0.3...v2.2007.0
[2.0.3]: https://github.com/dgraph-io/badger/compare/v2.0.2...v2.0.3
[2.0.2]: https://github.com/dgraph-io/badger/compare/v2.0.1...v2.0.2
[2.0.1]: https://github.com/dgraph-io/badger/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/dgraph-io/badger/compare/v1.6.0...v2.0.0
[1.6.0]: https://github.com/dgraph-io/badger/compare/v1.5.5...v1.6.0
[1.5.5]: https://github.com/dgraph-io/badger/compare/v1.5.3...v1.5.5
[1.5.3]: https://github.com/dgraph-io/badger/compare/v1.5.2...v1.5.3
[1.5.2]: https://github.com/dgraph-io/badger/compare/v1.5.1...v1.5.2
[1.5.1]: https://github.com/dgraph-io/badger/compare/v1.5.0...v1.5.1
[1.5.0]: https://github.com/dgraph-io/badger/compare/v1.4.0...v1.5.0
[1.4.0]: https://github.com/dgraph-io/badger/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/dgraph-io/badger/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/dgraph-io/badger/compare/v1.1.1...v1.2.0
[1.1.1]: https://github.com/dgraph-io/badger/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/dgraph-io/badger/compare/v1.0.1...v1.1.0
[1.0.1]: https://github.com/dgraph-io/badger/compare/v1.0.0...v1.0.1
+2 -2
View File
@@ -51,8 +51,8 @@ an appointed representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community
leaders responsible for enforcement at hello@hypermode.com. All complaints will be reviewed and
investigated promptly and fairly.
leaders responsible for enforcement at dgraph-admin@istaridigital.com. All complaints will be
reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the reporter of any
incident.
+5 -5
View File
@@ -25,8 +25,8 @@ Please make sure to read and observe our [Code of Conduct](./CODE_OF_CONDUCT.md)
### Find a good first topic
You can start by finding an existing issue with the
[good first issue](https://github.com/hypermodeinc/badger/labels/good%20first%20issue) or
[help wanted](https://github.com/hypermodeinc/badger/labels/help%20wanted) labels. These issues are
[good first issue](https://github.com/dgraph-io/badger/labels/good%20first%20issue) or
[help wanted](https://github.com/dgraph-io/badger/labels/help%20wanted) labels. These issues are
well suited for new contributors.
## Setting up your development environment
@@ -36,7 +36,7 @@ version of Go should be **1.12** or above.
### Fork the project
- Visit https://github.com/hypermodeinc/badger
- Visit https://github.com/dgraph-io/badger
- Click the `Fork` button (top right) to create a fork of the repository
### Clone the project
@@ -44,7 +44,7 @@ version of Go should be **1.12** or above.
```sh
git clone https://github.com/$GITHUB_USER/badger
cd badger
git remote add upstream git@github.com:hypermodeinc/badger.git
git remote add upstream git@github.com:dgraph-io/badger.git
# Never push to the upstream master
git remote set-url --push upstream no_push
@@ -98,7 +98,7 @@ description.
### Sign the CLA
Click the **Sign in with Github to agree** button to sign the CLA.
[An example](https://cla-assistant.io/hypermodeinc/badger?pullRequest=1377).
[An example](https://cla-assistant.io/dgraph-io/badger?pullRequest=1377).
### Get a code review
+1 -1
View File
@@ -1,5 +1,5 @@
#
# SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
# SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
# SPDX-License-Identifier: Apache-2.0
#
+10 -11
View File
@@ -2,10 +2,10 @@
[![Go Reference](https://pkg.go.dev/badge/github.com/dgraph-io/badger/v4.svg)](https://pkg.go.dev/github.com/dgraph-io/badger/v4)
[![Go Report Card](https://goreportcard.com/badge/github.com/dgraph-io/badger/v4)](https://goreportcard.com/report/github.com/dgraph-io/badger/v4)
[![Sourcegraph](https://sourcegraph.com/github.com/hypermodeinc/badger/-/badge.svg)](https://sourcegraph.com/github.com/hypermodeinc/badger?badge)
[![ci-badger-tests](https://github.com/hypermodeinc/badger/actions/workflows/ci-badger-tests.yml/badge.svg)](https://github.com/hypermodeinc/badger/actions/workflows/ci-badger-tests.yml)
[![ci-badger-bank-tests](https://github.com/hypermodeinc/badger/actions/workflows/ci-badger-bank-tests.yml/badge.svg)](https://github.com/hypermodeinc/badger/actions/workflows/ci-badger-bank-tests.yml)
[![ci-badger-bank-tests-nightly](https://github.com/hypermodeinc/badger/actions/workflows/ci-badger-bank-tests-nightly.yml/badge.svg)](https://github.com/hypermodeinc/badger/actions/workflows/ci-badger-bank-tests-nightly.yml)
[![Sourcegraph](https://sourcegraph.com/github.com/dgraph-io/badger/-/badge.svg)](https://sourcegraph.com/github.com/dgraph-io/badger?badge)
[![ci-badger-tests](https://github.com/dgraph-io/badger/actions/workflows/ci-badger-tests.yml/badge.svg)](https://github.com/dgraph-io/badger/actions/workflows/ci-badger-tests.yml)
[![ci-badger-bank-tests](https://github.com/dgraph-io/badger/actions/workflows/ci-badger-bank-tests.yml/badge.svg)](https://github.com/dgraph-io/badger/actions/workflows/ci-badger-bank-tests.yml)
[![ci-badger-bank-tests-nightly](https://github.com/dgraph-io/badger/actions/workflows/ci-badger-bank-tests-nightly.yml/badge.svg)](https://github.com/dgraph-io/badger/actions/workflows/ci-badger-bank-tests-nightly.yml)
![Badger mascot](images/diggy-shadow.png)
@@ -29,7 +29,7 @@ Please consult the [Changelog] for more detailed information on releases.
Note: Badger is built with go 1.23 and we refrain from bumping this version to minimize downstream
effects of those using Badger in applications built with older versions of Go.
[Changelog]: https://github.com/hypermodeinc/badger/blob/main/CHANGELOG.md
[Changelog]: https://github.com/dgraph-io/badger/blob/main/CHANGELOG.md
## Table of Contents
@@ -77,7 +77,7 @@ This will install the badger command line utility into your $GOBIN path.
## Badger Documentation
Badger Documentation is available at https://docs.hypermode.com/badger
Badger Documentation is available at [https://badger.dgraph.io](https://badger.dgraph.io)
## Resources
@@ -141,7 +141,7 @@ including graphs can be found the blog posts (linked above).
Below is a list of known projects that use Badger:
- [Dgraph](https://github.com/hypermodeinc/dgraph) - Distributed graph database.
- [Dgraph](https://github.com/dgraph-io/dgraph) - Distributed graph database.
- [Jaeger](https://github.com/jaegertracing/jaeger) - Distributed tracing platform.
- [go-ipfs](https://github.com/ipfs/go-ipfs) - Go client for the InterPlanetary File System (IPFS),
a new hypermedia distribution protocol.
@@ -260,7 +260,6 @@ If you're interested in contributing to Badger see [CONTRIBUTING](./CONTRIBUTING
## Contact
- Please use [Github issues](https://github.com/hypermodeinc/badger/issues) for filing bugs.
- Please use [discuss.hypermode.com](https://discuss.hypermode.com) for questions, discussions, and
feature requests.
- Follow us on Twitter [@hypermodeinc](https://twitter.com/hypermodeinc).
- Please use [Github issues](https://github.com/dgraph-io/badger/issues) for filing bugs.
- Please use [Discussions](https://github.com/orgs/dgraph-io/discussions) for questions,
discussions, and feature requests.
+1 -1
View File
@@ -5,6 +5,6 @@ vulnerability in Badger, we encourage you to let us know right away.
We will investigate all legitimate reports and do our best to quickly fix the problem. Please report
any issues or vulnerabilities via GitHub Security Advisories instead of posting a public issue in
GitHub. You can also send security communications to security@hypermode.com.
GitHub. You can also send security communications to dgraph-admin@istaridigital.com.
Please include the version identifier and details on how the vulnerability can be exploited.
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
#
# SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
# SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
# SPDX-License-Identifier: Apache-2.0
#
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
GHORG=${GHORG:-hypermodeinc}
GHORG=${GHORG:-dgraph-io}
GHREPO=${GHREPO:-badger}
cat <<EOF
This description was generated using this script:
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
@@ -641,7 +641,7 @@ func TestL0GCBug(t *testing.T) {
require.NoError(t, db2.Close())
}
// Regression test for https://github.com/hypermodeinc/badger/issues/1126
// Regression test for https://github.com/dgraph-io/badger/issues/1126
//
// The test has 3 steps
// Step 1 - Create badger data. It is necessary that the value size is
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -2,7 +2,7 @@
// +build js wasip1
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -2,7 +2,7 @@
// +build !windows,!plan9,!js,!wasip1
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+2 -2
View File
@@ -2,7 +2,7 @@
// +build windows
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
@@ -96,5 +96,5 @@ func (g *directoryLockGuard) release() error {
}
// Windows doesn't support syncing directories to the file system. See
// https://github.com/hypermodeinc/badger/issues/699#issuecomment-504133587 for more details.
// https://github.com/dgraph-io/badger/issues/699#issuecomment-504133587 for more details.
func syncDir(dir string) error { return nil }
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+7 -7
View File
@@ -11,8 +11,8 @@ call is made internally in the loop. That causes Badger to acquire read locks ov
files to avoid value log GC removing the file from underneath. As a side effect, this also blocks a
new value log GC file from being created, when the value log file boundary is hit.
Please see GitHub issues [#293](https://github.com/hypermodeinc/badger/issues/293) and
[#315](https://github.com/hypermodeinc/badger/issues/315).
Please see GitHub issues [#293](https://github.com/dgraph-io/badger/issues/293) and
[#315](https://github.com/dgraph-io/badger/issues/315).
There are multiple workarounds during iteration:
@@ -60,8 +60,8 @@ Just like forward iteration goes to the first key which is equal or greater than
reverse iteration goes to the first key which is equal or lesser than the SEEK key. Therefore, SEEK
key would not be part of the results. You can typically add a `0xff` byte as a suffix to the SEEK
key to include it in the results. See the following issues:
[#436](https://github.com/hypermodeinc/badger/issues/436) and
[#347](https://github.com/hypermodeinc/badger/issues/347).
[#436](https://github.com/dgraph-io/badger/issues/436) and
[#347](https://github.com/dgraph-io/badger/issues/347).
## Which instances should I use for Badger?
@@ -133,9 +133,9 @@ compression and the library requires [`gcc/cgo`](https://pkg.go.dev/cmd/cgo). Yo
without Cgo by running `CGO_ENABLED=0 go build`. This builds Badger without the support for ZSTD
compression algorithm.
As of Badger versions [v2.2007.4](https://github.com/hypermodeinc/badger/releases/tag/v2.2007.4) and
[v3.2103.1](https://github.com/hypermodeinc/badger/releases/tag/v3.2103.1) the DataDog ZSTD library
was replaced by pure Golang version and Cgo is no longer required. The new library is
As of Badger versions [v2.2007.4](https://github.com/dgraph-io/badger/releases/tag/v2.2007.4) and
[v3.2103.1](https://github.com/dgraph-io/badger/releases/tag/v3.2103.1) the DataDog ZSTD library was
replaced by pure Golang version and Cgo is no longer required. The new library is
[backwards compatible in nearly all cases](https://discuss.hypermode.com/t/use-pure-go-zstd-implementation/8670/10):
<Note>
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
@@ -106,7 +106,7 @@ func (item *Item) Value(fn func(val []byte) error) error {
// returned. Tip: It might make sense to reuse the returned slice as dst argument for the next call.
//
// This function is useful in long running iterate/update transactions to avoid a write deadlock.
// See Github issue: https://github.com/hypermodeinc/badger/issues/315
// See Github issue: https://github.com/dgraph-io/badger/issues/315
func (item *Item) ValueCopy(dst []byte) ([]byte, error) {
item.wg.Wait()
if item.status == prefetched {
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
@@ -51,7 +51,7 @@ func TestPickTables(t *testing.T) {
within([]byte("abc"), []byte("abb123"), []byte("ad"))
within([]byte("abc"), []byte("abc123"), []byte("abd234"))
within([]byte("abc"), []byte("abc123"), []byte("abc456"))
// Regression test for https://github.com/hypermodeinc/badger/issues/992
// Regression test for https://github.com/dgraph-io/badger/issues/992
within([]byte{0, 0, 1}, []byte{0}, []byte{0, 0, 1})
outside("abd", "abe", "ad")
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+5 -5
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
@@ -368,14 +368,14 @@ func ReplayManifestFile(fp *os.File, extMagic uint16, opt Options) (Manifest, in
return Manifest{}, 0,
//nolint:lll
fmt.Errorf("manifest has unsupported version: %d (we support %d).\n"+
"Please see https://docs.hypermode.com/badger/troubleshooting#i-see-manifest-has-unsupported-version-x-we-support-y-error"+
" on how to fix this.",
"Please see https://github.com/dgraph-io/badger/blob/main/docs/troubleshooting.md#i-see-manifest-has-unsupported-version-x-we-support-y-error"+
" on how to fix this",
version, badgerMagicVersion)
}
if extVersion != extMagic {
return Manifest{}, 0,
fmt.Errorf("Cannot open DB because the external magic number doesn't match. "+
"Expected: %d, version present in manifest: %d\n", extMagic, extVersion)
fmt.Errorf("cannot open DB because the external magic number doesn't match, "+
"expected: %d, version present in manifest: %d", extMagic, extVersion)
}
stat, err := fp.Stat()
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
@@ -204,7 +204,7 @@ func TestManifestRewrite(t *testing.T) {
require.NoError(t, db.Close())
removeDir(dir)
}()
deletionsThreshold := 10
mf, m, err := helpOpenOrCreateManifestFile(dir, false, 0, deletionsThreshold, db.opt)
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
//
// SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
// SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
// SPDX-License-Identifier: Apache-2.0
// Use protos/gen.sh to generate .pb.go files.
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
@@ -45,8 +45,8 @@ func (p valuePointer) Encode() []byte {
// Decode decodes the value pointer into the provided byte buffer.
func (p *valuePointer) Decode(b []byte) {
// Copy over data from b into p. Using *p=unsafe.pointer(...) leads to
// pointer alignment issues. See https://github.com/hypermodeinc/badger/issues/1096
// and comment https://github.com/hypermodeinc/badger/pull/1097#pullrequestreview-307361714
// pointer alignment issues. See https://github.com/dgraph-io/badger/issues/1096
// and comment https://github.com/dgraph-io/badger/pull/1097#pullrequestreview-307361714
copy(((*[vptrSize]byte)(unsafe.Pointer(p))[:]), b[:vptrSize])
}
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
@@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/require"
)
// Regression test for github.com/hypermodeinc/badger/pull/1800
// Regression test for github.com/dgraph-io/badger/pull/1800
func TestLargeEncode(t *testing.T) {
var headerEnc [maxHeaderSize]byte
h := header{math.MaxUint32, math.MaxUint32, math.MaxUint64, math.MaxUint8, math.MaxUint8}
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
@@ -51,8 +51,8 @@ func (h header) Encode() []byte {
// Decode decodes the header.
func (h *header) Decode(buf []byte) {
// Copy over data from buf into h. Using *h=unsafe.pointer(...) leads to
// pointer alignment issues. See https://github.com/hypermodeinc/badger/issues/1096
// and comment https://github.com/hypermodeinc/badger/pull/1097#pullrequestreview-307361714
// pointer alignment issues. See https://github.com/dgraph-io/badger/issues/1096
// and comment https://github.com/dgraph-io/badger/pull/1097#pullrequestreview-307361714
copy(((*[headerSize]byte)(unsafe.Pointer(h))[:]), buf[:headerSize])
}
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+3 -3
View File
@@ -27,7 +27,7 @@ popd
# Run the memory intensive tests first.
manual() {
timeout="-timeout 2m"
timeout="-timeout 5m"
echo "==> Running package tests for $packages"
set -e
go env -w GOTOOLCHAIN=go1.25.0+auto
@@ -106,6 +106,6 @@ write_coverage() {
# parallel tests currently not working
# parallel --halt now,fail=1 --progress --line-buffer ::: stream manual root
# run tests in sequence
root
stream
#root
#stream
manual
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
@@ -121,7 +121,7 @@ func (t *Trie) fix(m pb.Match, id uint64, op int) error {
ignore, err := parseIgnoreBytes(m.IgnoreBytes)
if err != nil {
return fmt.Errorf( "while parsing ignore bytes: %s: %w", m.IgnoreBytes,err)
return fmt.Errorf("while parsing ignore bytes: %s: %w", m.IgnoreBytes, err)
}
for len(ignore) < len(m.Prefix) {
ignore = append(ignore, false)
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
@@ -867,7 +867,7 @@ func TestArmV7Issue311Fix(t *testing.T) {
// This test tries to perform a GetAndSet operation using multiple concurrent
// transaction and only one of the transactions should be successful.
// Regression test for https://github.com/hypermodeinc/badger/issues/1289
// Regression test for https://github.com/dgraph-io/badger/issues/1289
func TestConflict(t *testing.T) {
key := []byte("foo")
var setCount atomic.Uint32
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+3 -3
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
@@ -1013,7 +1013,7 @@ func BenchmarkReadWrite(b *testing.B) {
}
}
// Regression test for https://github.com/hypermodeinc/badger/issues/817
// Regression test for https://github.com/dgraph-io/badger/issues/817
// This test verifies if fully corrupted memtables are deleted on reopen.
func TestValueLogTruncate(t *testing.T) {
dir, err := os.MkdirTemp("", "badger-test")
@@ -1103,7 +1103,7 @@ func TestValueEntryChecksum(t *testing.T) {
require.NoError(t, db.Close())
})
// Regression test for https://github.com/hypermodeinc/badger/issues/1049
// Regression test for https://github.com/dgraph-io/badger/issues/1049
t.Run("Corruption", func(t *testing.T) {
dir, err := os.MkdirTemp("", "badger-test")
require.NoError(t, err)
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
+1 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
* SPDX-FileCopyrightText: © 2017-2025 Istari Digital, Inc.
* SPDX-License-Identifier: Apache-2.0
*/

Some files were not shown because too many files have changed in this diff Show More