-
Notifications
You must be signed in to change notification settings - Fork 61
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
Zero size values support #101
Comments
NuDB is designed as a content-addressable storage system. The digest of a zero-length message is always the same. So you would have at most one possible record with zero length. What is your use-case? |
My use-case would include having different keys resolving to the same value, including multiple keys possibly resolving to the zero-length value. At first glance it seems to be working when I disable boost asserts. Think of
|
Are you aware that NuDB is append-only? You can't change entries. |
Yes |
Hello, I am wondering if there is a reason for disallowing zero size values? I have noticed that the insert code contains
BOOST_ASSERT(size > 0);
. I think that the database could/should let the user store zero size values.The text was updated successfully, but these errors were encountered: