Skip to content
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

WriteBatch.Delete() panics on empty key #55

Open
erikgrinaker opened this issue Mar 10, 2020 · 0 comments
Open

WriteBatch.Delete() panics on empty key #55

erikgrinaker opened this issue Mar 10, 2020 · 0 comments

Comments

@erikgrinaker
Copy link

Calling WriteBatch.Delete() with an empty key, i.e. []byte{}, panics:

goroutine 38 [running]:
testing.tRunner.func1.1(0x43ddc60, 0xc0005d4060)
	/usr/local/Cellar/go/1.14/libexec/src/testing/testing.go:941 +0x3d0
testing.tRunner.func1(0xc0005da000)
	/usr/local/Cellar/go/1.14/libexec/src/testing/testing.go:944 +0x3f9
panic(0x43ddc60, 0xc0005d4060)
	/usr/local/Cellar/go/1.14/libexec/src/runtime/panic.go:967 +0x15d
github.com/jmhodges/levigo.(*WriteBatch).Delete.func1(0xc0005c22b0, 0x4744c10, 0x0, 0x0)
	github.com/jmhodges/[email protected]/batch.go:60 +0x84
github.com/jmhodges/levigo.(*WriteBatch).Delete(0xc0005c22b0, 0x4744c10, 0x0, 0x0)
	github.com/jmhodges/[email protected]/batch.go:60 +0x49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant