don't skip rewrite when account was written IN the current slot already (#26197)
This commit is contained in:
parent
8ef33a53a5
commit
a36abfda28
|
@ -5357,6 +5357,7 @@ impl Bank {
|
||||||
let mut time_storing_accounts_us = 0;
|
let mut time_storing_accounts_us = 0;
|
||||||
let can_skip_rewrites = self.rc.accounts.accounts_db.skip_rewrites || just_rewrites;
|
let can_skip_rewrites = self.rc.accounts.accounts_db.skip_rewrites || just_rewrites;
|
||||||
for (pubkey, account, loaded_slot) in accounts.iter_mut() {
|
for (pubkey, account, loaded_slot) in accounts.iter_mut() {
|
||||||
|
let old_rent_epoch = account.rent_epoch();
|
||||||
let (rent_collected_info, measure) =
|
let (rent_collected_info, measure) =
|
||||||
measure!(self.rent_collector.collect_from_existing_account(
|
measure!(self.rent_collector.collect_from_existing_account(
|
||||||
pubkey,
|
pubkey,
|
||||||
|
@ -5375,7 +5376,7 @@ impl Bank {
|
||||||
bank_slot,
|
bank_slot,
|
||||||
rent_collected_info.rent_amount,
|
rent_collected_info.rent_amount,
|
||||||
*loaded_slot,
|
*loaded_slot,
|
||||||
account.rent_epoch(),
|
old_rent_epoch,
|
||||||
account,
|
account,
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue