-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail fast if cgo is disabled and compression is ZSTD (#1284)
As seen in issue hypermodeinc/dgraph#4995, if badger is built without CGO and compression is set to ZSTD, badger would crash when level 0 is compacted. This could take from a few seconds to a few minutes for the crash to show up. With this commit, `badger.Open()` call will return an error if compression is set to ZSTD and badger was built without CGO.
- Loading branch information
Ibrahim Jarif
authored
Apr 8, 2020
1 parent
6e032c0
commit 2e708d9
Showing
3 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters