-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic under macos #18
Comments
I find this syscall also in the official badger, usage. package main
import (
badger "github.com/dgraph-io/badger/v3"
)
func main() {
db, err := badger.Open(badger.DefaultOptions("/tmp/badger"))
if err != nil {
panic(err)
}
defer db.Close()
if err := db.Update(func(txn *badger.Txn) error {
return txn.Set([]byte("key"), []byte("value"))
}); err != nil {
panic(err)
}
println("Put Value:", "value")
if err := db.View(func(txn *badger.Txn) error {
item, err := txn.Get([]byte("key"))
if err != nil {
return err
}
val, err := item.ValueCopy([]byte{})
if err != nil {
return err
}
println("Get Value:", string(val))
return nil
}); err != nil {
panic(err)
}
} Can you try this case and check the output? It works in my machines(amd64 Linux and arm MacOS) and got the following result:
|
This case works well and produces the same output... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment:
OS: macOS 10.15.7 (19H1615) Darwin 19.6.0
File system: case sensitive APFS
How to reproduce:
The text was updated successfully, but these errors were encountered: