You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found a bug while comparing how long it takes to insert 1000000 int keys and values (from 0 to 999999) using this lib and rocksdb. When forward iterating the first key should be 0 but it isn't.
@rnarubin - any thoughts on this? Your fork seem to be the one that's most active.
this looks like a test issue. you're inserting the same byte array repeatedly, overwriting the data with each iteration. The db doesn't make a copy internally, it holds onto the array as given until it's ready to flush the write buffer, so you're mutating the key it's holding. try running the same test with a new byte array for each iteration
I've found a bug while comparing how long it takes to insert 1000000 int keys and values (from
0
to999999
) using this lib and rocksdb. When forward iterating the first key should be0
but it isn't.@rnarubin - any thoughts on this? Your fork seem to be the one that's most active.
Here's a test case that verifies the bug.
The text was updated successfully, but these errors were encountered: