Skip to content

Commit 0d6f9bf

Browse files
committed
fix view update
1 parent 51542ce commit 0d6f9bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/storage.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ impl StorageManager {
4444
hash.borrow_mut().insert(key);
4545
}
4646
}
47+
pub fn put_hkey(&mut self, key: u64) {
48+
if let Some(hash) = self.stack.last() {
49+
hash.borrow_mut().insert(key);
50+
}
51+
}
4752
}
4853

4954
thread_local! {
@@ -233,6 +238,7 @@ impl Storage {
233238
val: EntryValue::Single(val.clone().into()),
234239
},
235240
);
241+
MGR.with(|mgr: &RefCell<StorageManager>| mgr.borrow_mut().put_hkey(hkey));
236242
}
237243
}
238244
}

0 commit comments

Comments
 (0)