get stored_size from StoredAccountMeta (#30456)
This commit is contained in:
parent
a2b0b8e346
commit
6df160bedd
|
@ -7973,7 +7973,7 @@ impl AccountsDb {
|
||||||
);
|
);
|
||||||
let offset = account_info.offset();
|
let offset = account_info.offset();
|
||||||
let account = store.accounts.get_account(offset).unwrap();
|
let account = store.accounts.get_account(offset).unwrap();
|
||||||
let stored_size = account.1.saturating_sub(offset);
|
let stored_size = account.0.stored_size;
|
||||||
let count = store.remove_account(stored_size, reset_accounts);
|
let count = store.remove_account(stored_size, reset_accounts);
|
||||||
if count == 0 {
|
if count == 0 {
|
||||||
self.dirty_stores
|
self.dirty_stores
|
||||||
|
|
Loading…
Reference in New Issue