blockstore: store first received coding shred index in ErasureMeta#961
blockstore: store first received coding shred index in ErasureMeta#961AshwinSekar merged 2 commits intoanza-xyz:masterfrom
Conversation
25ad37b to
26d3305
Compare
|
Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #961 +/- ##
=========================================
- Coverage 81.9% 81.8% -0.1%
=========================================
Files 853 853
Lines 231797 231824 +27
=========================================
+ Hits 189845 189852 +7
- Misses 41952 41972 +20 |
| first_coding_index: u64, | ||
| /// Size of shards in this erasure set | ||
| #[serde(rename = "size")] | ||
| __unused_size: usize, |
There was a problem hiding this comment.
I think it is safe to change type from usize to u64 for consistency and fewer type-casts.
usize is serialized as u64 anyways:
https://github.com/serde-rs/serde/blob/f6623a365/serde/src/ser/impls.rs#L28
) * blockstore: store first received coding shred index in ErasureMeta * pr feedback: use u64 instead of usize (cherry picked from commit f133697) # Conflicts: # ledger/src/blockstore_meta.rs
) * blockstore: store first received coding shred index in ErasureMeta * pr feedback: use u64 instead of usize (cherry picked from commit f133697) # Conflicts: # ledger/src/blockstore_meta.rs
…Meta (backport of #961) (#981) * blockstore: store first received coding shred index in ErasureMeta (#961) * blockstore: store first received coding shred index in ErasureMeta * pr feedback: use u64 instead of usize (cherry picked from commit f133697) # Conflicts: # ledger/src/blockstore_meta.rs * fix blockstore_meta conflict --------- Co-authored-by: Ashwin Sekar <ashwin@anza.xyz> Co-authored-by: Ashwin Sekar <ashwin@solana.com>
…Meta (backport of anza-xyz#961) (anza-xyz#981) * blockstore: store first received coding shred index in ErasureMeta (anza-xyz#961) * blockstore: store first received coding shred index in ErasureMeta * pr feedback: use u64 instead of usize (cherry picked from commit f133697) # Conflicts: # ledger/src/blockstore_meta.rs * fix blockstore_meta conflict --------- Co-authored-by: Ashwin Sekar <ashwin@anza.xyz> Co-authored-by: Ashwin Sekar <ashwin@solana.com>
Reuse the
__unused_size : usizefield inErasureMetato store the index of the first received coding shred for the FEC set.Split from #835
Contributes to solana-labs#34897