mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Companion for paritytech/substrate#12795 (#6374)
* Begin removing `parity-util-mem`; remove `collect_memory_stats`
* Update some dependencies that were using `parity-util-mem`
* Remove `trie-memory-tracker` feature
* Update Cargo.lock
* Update `kvdb-shared-tests`
* Add back jemalloc
* Add missing license header
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
Co-authored-by: Andronik <write@reusable.software>
This commit is contained in:
@@ -29,7 +29,6 @@ pub trait Database: KeyValueDB {
|
||||
pub mod kvdb_impl {
|
||||
use super::{DBKeyValue, DBTransaction, DBValue, Database, KeyValueDB};
|
||||
use kvdb::{DBOp, IoStats, IoStatsKind};
|
||||
use parity_util_mem::{MallocSizeOf, MallocSizeOfOps};
|
||||
use std::{collections::BTreeSet, io::Result};
|
||||
|
||||
/// Adapter implementing subsystem database
|
||||
@@ -123,13 +122,6 @@ pub mod kvdb_impl {
|
||||
self.db.has_prefix(col, prefix)
|
||||
}
|
||||
}
|
||||
|
||||
impl<D: KeyValueDB> MallocSizeOf for DbAdapter<D> {
|
||||
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize {
|
||||
// ignore filter set
|
||||
self.db.size_of(ops)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Utilities for using parity-db database.
|
||||
@@ -160,12 +152,6 @@ pub mod paritydb_impl {
|
||||
write_lock: Arc<Mutex<()>>,
|
||||
}
|
||||
|
||||
impl parity_util_mem::MallocSizeOf for DbAdapter {
|
||||
fn size_of(&self, _ops: &mut parity_util_mem::MallocSizeOfOps) -> usize {
|
||||
unimplemented!("size_of is not supported for parity_db")
|
||||
}
|
||||
}
|
||||
|
||||
impl KeyValueDB for DbAdapter {
|
||||
fn transaction(&self) -> DBTransaction {
|
||||
DBTransaction::new()
|
||||
|
||||
Reference in New Issue
Block a user