log when appending exceeds available space (#34170)
This commit is contained in:
parent
3368579eff
commit
202463849a
|
@ -6310,6 +6310,14 @@ impl AccountsDb {
|
|||
.unwrap_or_default();
|
||||
let data_len = (data_len + STORE_META_OVERHEAD) as u64;
|
||||
if !self.has_space_available(slot, data_len) {
|
||||
info!(
|
||||
"write_accounts_to_storage, no space: {}, {}, {}, {}, {}",
|
||||
storage.accounts.capacity(),
|
||||
storage.accounts.remaining_bytes(),
|
||||
data_len,
|
||||
infos.len(),
|
||||
accounts_and_meta_to_store.len()
|
||||
);
|
||||
let special_store_size = std::cmp::max(data_len * 2, self.file_size);
|
||||
if self
|
||||
.try_recycle_and_insert_store(slot, special_store_size, std::u64::MAX)
|
||||
|
|
Loading…
Reference in New Issue