From 9080b36192d3769e0609d39a15e4d20ee051f5c0 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Fri, 24 Feb 2023 13:50:57 -0600 Subject: [PATCH] use local for store_id in write_accounts_to_storage (#30500) --- runtime/src/accounts_db.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 0bf818d430..19486b5049 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -6204,12 +6204,13 @@ impl AccountsDb { continue; } + let store_id = storage.append_vec_id(); for (i, offsets) in rvs.unwrap().windows(2).enumerate() { let stored_size = offsets[1] - offsets[0]; storage.add_account(stored_size); infos.push(AccountInfo::new( - StorageLocation::AppendVec(storage.append_vec_id(), offsets[0]), + StorageLocation::AppendVec(store_id, offsets[0]), accounts_and_meta_to_store .account(i) .map(|account| account.lamports())