parent
622a6fba7f
commit
7eb793a55e
|
@ -5530,7 +5530,7 @@ dependencies = [
|
||||||
"bincode",
|
"bincode",
|
||||||
"chrono",
|
"chrono",
|
||||||
"crossbeam-channel",
|
"crossbeam-channel",
|
||||||
"futures 0.3.16",
|
"futures 0.3.17",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
"log 0.4.14",
|
"log 0.4.14",
|
||||||
"prost",
|
"prost",
|
||||||
|
@ -5541,7 +5541,7 @@ dependencies = [
|
||||||
"solana-rpc",
|
"solana-rpc",
|
||||||
"solana-runtime",
|
"solana-runtime",
|
||||||
"solana-sdk",
|
"solana-sdk",
|
||||||
"tokio 1.10.1",
|
"tokio 1.11.0",
|
||||||
"tonic",
|
"tonic",
|
||||||
"tonic-build",
|
"tonic-build",
|
||||||
]
|
]
|
||||||
|
|
|
@ -12181,10 +12181,8 @@ pub mod tests {
|
||||||
assert!(db.storage.get_slot_storage_entries(*slot).is_none());
|
assert!(db.storage.get_slot_storage_entries(*slot).is_none());
|
||||||
assert!(db.accounts_cache.slot_cache(*slot).is_none());
|
assert!(db.accounts_cache.slot_cache(*slot).is_none());
|
||||||
let account_in_slot = slot_to_pubkey_map[slot];
|
let account_in_slot = slot_to_pubkey_map[slot];
|
||||||
assert!(db
|
let item = db.accounts_index.get_account_read_entry(&account_in_slot);
|
||||||
.accounts_index
|
assert!(item.is_none(), "item: {:?}", item);
|
||||||
.get_account_read_entry(&account_in_slot)
|
|
||||||
.is_none());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wait for flush to finish before starting next trial
|
// Wait for flush to finish before starting next trial
|
||||||
|
|
|
@ -133,6 +133,12 @@ pub struct ReadAccountMapEntry<T: IsCached> {
|
||||||
slot_list_guard: RwLockReadGuard<'this, SlotList<T>>,
|
slot_list_guard: RwLockReadGuard<'this, SlotList<T>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<T: IsCached> Debug for ReadAccountMapEntry<T> {
|
||||||
|
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||||
|
write!(f, "{:?}", self.borrow_owned_entry())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<T: IsCached> ReadAccountMapEntry<T> {
|
impl<T: IsCached> ReadAccountMapEntry<T> {
|
||||||
pub fn from_account_map_entry(account_map_entry: AccountMapEntry<T>) -> Self {
|
pub fn from_account_map_entry(account_map_entry: AccountMapEntry<T>) -> Self {
|
||||||
ReadAccountMapEntryBuilder {
|
ReadAccountMapEntryBuilder {
|
||||||
|
|
Loading…
Reference in New Issue