@@ -86,6 +86,7 @@ impl Entry {
}
pub fn ensure_blob_is_mutable(&self) -> Result<(), Error> {
+ self.bump_version();
let mut val = self.get_mut();
match *val {
Value::Blob(ref mut data) => {
@@ -447,6 +447,7 @@ impl Db {
number = incr_by.checked_add(&number).ok_or(Error::Overflow)?;
*value = Value::Blob(Self::round_numbers(number));
+ entry.bump_version();
Ok(number)
} else {
drop(slot);