Manage key length conversion error correctly

This commit is contained in:
Clément Renault 2024-12-02 11:02:49 +01:00
parent 5e218f3f4d
commit d5c07ef7b3
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
3 changed files with 48 additions and 17 deletions

View file

@ -432,7 +432,7 @@ where
if let Err(error) = database.put(wtxn, &key, &value) {
return Err(Error::InternalError(InternalError::StorePut {
database_name,
key,
key: bstr::BString::from(&key[..]),
value_length: value.len(),
error,
}));