mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 07:41:08 +00:00
Fix a storage leak in parachains db (#5594)
* Fix cleanup of old votes. * Cleanup. * Get rid of redundant import * Tests + logging * Fix db key name. * Add some reasoning to batch size. * Add dispute data to indexed columns * Fix fmt * Add helper function. * Fix typos. * Update node/core/dispute-coordinator/src/db/v1.rs Co-authored-by: Andronik <write@reusable.software> * Update node/core/dispute-coordinator/src/db/v1.rs Co-authored-by: Andronik <write@reusable.software> * Add metric for how long cleanup takes. Co-authored-by: Andronik <write@reusable.software>
This commit is contained in:
@@ -33,7 +33,8 @@ pub(crate) mod columns {
|
||||
pub const COL_APPROVAL_DATA: u32 = 2;
|
||||
pub const COL_CHAIN_SELECTION_DATA: u32 = 3;
|
||||
pub const COL_DISPUTE_COORDINATOR_DATA: u32 = 4;
|
||||
pub const ORDERED_COL: &[u32] = &[COL_AVAILABILITY_META, COL_CHAIN_SELECTION_DATA];
|
||||
pub const ORDERED_COL: &[u32] =
|
||||
&[COL_AVAILABILITY_META, COL_CHAIN_SELECTION_DATA, COL_DISPUTE_COORDINATOR_DATA];
|
||||
}
|
||||
|
||||
/// Columns used by different subsystems.
|
||||
|
||||
Reference in New Issue
Block a user