Jeff Washington (jwash)
005dde70e2
minor cleanup ( #30477 )
2023-02-23 15:10:09 -08:00
Jeff Washington (jwash)
9ddb89226c
remove_dead_accounts uses slot instead of AppendVecId ( #30471 )
2023-02-23 13:20:33 -08:00
Jeff Washington (jwash)
a2b0b8e346
rearrange how shrink_in_progress_map is populated ( #30466 )
2023-02-23 11:35:38 -08:00
Jeff Washington (jwash)
47d95a431c
remove magic numbers in test ( #30465 )
2023-02-23 09:23:14 -08:00
Yueh-Hsuan Chiang
ac7e7aa8f0
Move account-meta structs from append_vec.rs to account_meta.rs ( #30443 )
...
#### Problem
As we start supporting new storage formats, those account-meta
structs will be shared by different storage formats and thus need
a new home.
#### Summary of Changes
This PR creates meta.rs under account_storage and moves all the account-meta
structs out from append_vec.rs.
2023-02-22 16:10:34 -08:00
Jeff Washington (jwash)
0ca638648b
add shrink_can_be_active to remove ( #30191 )
2023-02-08 11:32:18 -08:00
Jeff Washington (jwash)
0da4697b2f
add ancient write_ancient_accounts ( #30182 )
2023-02-08 09:40:17 -08:00
Jeff Washington (jwash)
aef8692c8f
remove SnapshotStorageOne ( #29747 )
2023-01-18 07:10:56 -08:00
Jeff Washington (jwash)
5188da0492
remove get_slot_stores from AccountStorage ( #29726 )
2023-01-17 09:26:46 -08:00
Jeff Washington (jwash)
461dafb887
AccountStorage only holds a single append vec ( #29723 )
...
* AccountStorageReference
* tests build
* pr feedback
2023-01-16 16:22:30 -08:00
Jeff Washington (jwash)
ef30083319
iterate contents of AccountStorage without exposing internals ( #29719 )
...
* iterate contents of AccountStorage without exposing internals
* Update runtime/src/accounts_db.rs
Co-authored-by: Brooks <brooks@prumo.org>
* Update runtime/src/accounts_db.rs
Co-authored-by: Brooks <brooks@prumo.org>
* Update runtime/src/accounts_db.rs
Co-authored-by: Brooks <brooks@prumo.org>
* compile errors
Co-authored-by: Brooks <brooks@prumo.org>
2023-01-16 12:01:25 -08:00
Jeff Washington (jwash)
977d3453a3
storage.remove does not leak SlotStores ( #29664 )
2023-01-15 11:06:24 -08:00
Jeff Washington (jwash)
064f163b70
get_account_storage_entry handles missing shrink in progress entry correctly ( #29682 )
2023-01-13 13:11:25 -08:00
Jeff Washington (jwash)
1faf7d516b
while shrinking, old append vec is held outside of storage.map ( #29323 )
...
* while shrinking, old append vec is held outside of storage.map
* update comment
* rework ShrinkInProgress for clarity
* add tests and comment
2023-01-10 11:52:01 -08:00
Jeff Washington (jwash)
272e5a05f2
remove AccountStorage::is_empty() ( #29548 )
2023-01-06 06:51:25 -08:00
Jeff Washington (jwash)
093b1a5e10
get_storages_for_slot uses get_slot_storage_entry ( #29498 )
2023-01-04 10:15:56 -08:00
Jeff Washington (jwash)
10135dbd10
should_move_to_ancient_append_vec works with a single storage ( #29484 )
2023-01-04 07:03:46 -08:00
Jeff Washington (jwash)
89deecb979
add AccountStorage.is_empty_entry for tests ( #29489 )
2023-01-03 12:36:31 -08:00
Jeff Washington (jwash)
95d2f002bd
add AccountStorage.get_slot_storage_entry ( #29480 )
2023-01-03 12:10:34 -08:00
Jeff Washington (jwash)
102dc08378
get_snapshot_storages removes call to AccountStorage.get ( #29466 )
2023-01-03 09:15:07 -08:00
Jeff Washington (jwash)
9d15ead873
remove single use AccountStorage.slot_store_count ( #29479 )
2023-01-03 09:12:27 -08:00
Jeff Washington (jwash)
04508ccfa7
add AccountStorage.is_empty ( #29478 )
2023-01-03 08:35:10 -08:00
Jeff Washington (jwash)
6294d1eff1
cleanup in account_storage.rs ( #29467 )
2023-01-02 14:55:02 -08:00
Jeff Washington (jwash)
3d72012a31
cleanup 'shrinking_in_progress' ( #29359 )
2023-01-02 07:41:36 -08:00
Jeff Washington (jwash)
0f7ef085a0
introduce ShrinkInProgress ( #29329 )
...
* introduce ShrinkInProgress
* remove redundant check
* add comments
2022-12-21 09:03:29 -08:00
Jeff Washington (jwash)
5a687fa818
make AccountStorage::map private ( #29268 )
2022-12-14 20:03:25 -08:00
Jeff Washington (jwash)
49a136a374
move AccountStorage out of accounts_db.rs ( #29261 )
2022-12-14 15:08:39 -08:00