behzad nouri
5c9beef498
fixes errors from clippy::useless_conversion ( #29534 )
...
https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
2023-01-05 18:05:32 +00:00
behzad nouri
9524c9dbff
patches errors from clippy::uninlined_format_args
...
https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
2022-12-06 19:32:15 +00:00
Jeff Washington (jwash)
8924829e7b
extract 'unref_pubkeys' for shared code ( #28653 )
2022-10-28 10:12:29 -07:00
Jeff Washington (jwash)
a89010cc89
fix duplicate local variable ( #28093 )
2022-09-27 08:48:05 -07:00
behzad nouri
9ee53e594d
patches clippy errors from new rust nightly release ( #28028 )
2022-09-23 20:57:27 +00:00
Jeff Washington (jwash)
cd44a0ab7b
acctidx: unref returns whether refcount went negative ( #27773 )
2022-09-14 06:51:50 -07:00
Jeff Washington (jwash)
1811d684b5
clean race condition with extra unref ( #27682 )
...
* clean race condition with extra unref
* clarify comment
* fix test
* cleanup test
* clippy
2022-09-10 13:57:17 -07:00
apfitzge
6561428278
Separate add_un_ref for easier tracing ( #27652 )
2022-09-09 16:14:55 -05:00
Jeff Washington (jwash)
ecbd5bb807
acctidx: avoid extra addref in combine ancient slots ( #27545 )
...
* acctidx: avoid extra addref in combine ancient slots
* make code common
2022-09-06 13:57:34 -07:00
Jeff Washington (jwash)
f1297850b8
acctidx: use slot list len to determine if upsert remains in cache ( #27550 )
2022-09-06 10:59:54 -07:00
Jeff Washington (jwash)
7bdbb18741
acctidx: factor out update_slot_list_entry ( #27546 )
2022-09-06 07:39:31 -07:00
Jeff Washington (jwash)
8c1e193d5d
delay trying to flush cached upserts until far future ( #26908 )
2022-08-31 08:56:26 -05:00
Jeff Washington (jwash)
3d03f7b47e
remove unused acct idx::upsert_on_disk ( #27479 )
2022-08-30 15:42:46 -05:00
Brennan Watt
e4a7d01e10
Rust v1.63 ( #27303 )
...
* Upgrade to Rust v1.63.0
* Add nightly_clippy_allows
* Resolve some new clippy nightly lints
* Increase QUIC packets completion timeout
* Update quinn-udp crate
Co-authored-by: Michael Vines <mvines@gmail.com>
2022-08-22 18:01:03 -07:00
apfitzge
a655d45f3a
remove unnecessary references ( #27219 )
2022-08-22 19:22:35 -05:00
Brennan Watt
7573000d87
Revert "Rust v1.63.0 ( #27148 )" ( #27245 )
...
This reverts commit a2e7bdf50a
.
2022-08-19 09:19:44 +01:00
Jeff Washington (jwash)
e0472050c0
create helper fn for clarity ( #27216 )
2022-08-18 11:30:35 -05:00
Jeff Washington (jwash)
77563bc1c9
remove redundant call that bumps age to future ( #27215 )
2022-08-18 11:01:05 -05:00
Brennan Watt
a2e7bdf50a
Rust v1.63.0 ( #27148 )
...
* Upgrade to Rust v1.63.0
* Add nightly_clippy_allows
* Resolve some new clippy nightly lints
* Increase QUIC packets completion timeout
Co-authored-by: Michael Vines <mvines@gmail.com>
2022-08-17 15:48:33 -07:00
Jeff Washington (jwash)
4b8f881af3
in mem acct idx scan multiple ages simultaneously ( #26853 )
2022-08-03 13:44:01 -05:00
Jeff Washington (jwash)
ebabc53cee
use Vec::drain instead of option/take ( #26852 )
2022-07-31 21:04:15 -05:00
Jeff Washington (jwash)
9d31216d23
add StoreReclaims::Ignore ( #26489 )
2022-07-12 15:05:47 -05:00
behzad nouri
ba785cf8ab
removes erroneous uses of std::mem::swap ( #26536 )
...
All instances should be replace by std::mem::{replace,take},
or just plain assignment.
2022-07-11 11:33:15 +00:00
Jeff Washington (jwash)
b582e4ce0f
introduce UpsertReclaim ( #26462 )
2022-07-07 15:40:17 -05:00
Brooks Prumo
5b842669e7
Remove InMemAccountsIndex::map() and use map_internal directly ( #26189 )
2022-06-23 15:55:35 -05:00
Boqin Qin(秦 伯钦)
355e09e1fb
runtime: fix possible deadlock in in_mem_accounts_index ( #26046 )
2022-06-23 11:35:47 -05:00
Jeff Washington (jwash)
8e2bae7bf9
batch insert updates stat count correctly ( #26107 )
2022-06-22 08:45:42 -05:00
Jeff Washington (jwash)
43e0d29b18
Revert "fix double count of account index del stats ( #25797 )" ( #26103 )
...
This reverts commit 05cb25d8da
.
2022-06-21 14:05:26 -05:00
Jeff Washington (jwash)
7a3dc3a57b
remove unused param ( #26096 )
2022-06-21 13:10:41 -05:00
Boqin Qin(秦 伯钦)
95ea506d75
runtime: fix double-readlock in in_mem_accounts_index.rs ( #26047 )
2022-06-20 15:44:19 +01:00
Jeff Washington (jwash)
b02c412d5b
generate_index straight to disk and batched ( #25947 )
...
* generate_index straight to disk and batched
* renames and comments
* handle in-mem case correctly
* use mutex
2022-06-15 18:14:39 -05:00
Jeff Washington (jwash)
ae37359b6b
AcctIdx: only advance age on thread 0 ( #25943 )
2022-06-14 21:43:42 -05:00
Jeff Washington (jwash)
8c6455022f
remove dead code marker ( #25945 )
2022-06-14 10:47:26 -05:00
Jeff Washington (jwash)
01f41b8c76
get rid of dead code marker ( #25944 )
2022-06-14 08:44:40 -05:00
Brooks Prumo
a2c180dc0b
Add EvictionsGuard to InMemAccountsIndex ( #25847 )
2022-06-12 17:31:58 -05:00
Brooks Prumo
53695ecd21
Remove SlotT type alias ( #25908 )
2022-06-10 22:04:56 -05:00
HaoranYi
28142f8a6d
Refactor: separate delete and insert account index stats ( #25800 )
...
* fix double count of account index del stats
* refactor to seperate delete and insert account index stats
* fix test
* increase test timing tolerance for bucket age
* Revert "increase test timing tolerance for bucket age"
This reverts commit 2b91cf902208e4585d25dff1d4298d412c9da516.
2022-06-08 09:05:37 -05:00
HaoranYi
05cb25d8da
fix double count of account index del stats ( #25797 )
2022-06-07 11:50:57 -05:00
Jeff Washington (jwash)
e8df90c34b
rename count_buckets_flushed ( #25733 )
2022-06-02 12:16:01 -05:00
Jeff Washington (jwash)
ddd0ed0af1
fix ordering in disk idx ( #25735 )
2022-06-02 11:50:44 -05:00
Jeff Washington (jwash)
1bc49d219d
IndexLimitMb option adds 'Unspecified' state ( #24249 )
2022-04-12 09:38:09 -05:00
Jeff Washington (jwash)
f7b2951c79
move around some index metrics to reduce locks ( #24161 )
2022-04-07 09:43:19 -05:00
Jeff Washington (jwash)
1089a38aaf
AcctIdx: rework scan and write to disk ( #23794 )
2022-03-22 11:54:12 -05:00
Jeff Washington (jwash)
89ba3ff139
log fail to evict ( #23815 )
2022-03-22 09:19:38 -05:00
Jeff Washington (jwash)
24f6855f86
AcctIdx: only remove a fixed number of items per write lock ( #23795 )
2022-03-21 16:55:04 -05:00
Jeff Washington (jwash)
965ab9186d
AcctIdx: fix infinite loop ( #23806 )
2022-03-21 10:58:36 -05:00
Jeff Washington (jwash)
258db77100
AcctIdx: factor 'scan' out of flush_internal ( #23777 )
2022-03-20 22:00:38 -05:00
Jeff Washington (jwash)
df29276eb0
AcctIdx: remove -> evict ( #23775 )
2022-03-18 17:13:21 -05:00
Jeff Washington (jwash)
998e7d18f9
AcctIdx: never retry a bucket flush ( #23732 )
2022-03-18 12:20:42 -05:00
Jeff Washington (jwash)
857576d76f
AcctIdx: move write to disk outside in mem write lock ( #23731 )
2022-03-17 23:09:41 -05:00