20260605 移除audit rule index和DB trace
This commit is contained in:
@@ -3,7 +3,10 @@ use std::sync::Arc;
|
||||
|
||||
use rocksdb::{DB, Options, WriteBatch};
|
||||
|
||||
use crate::storage::{RawByHashEntry, RocksStore, StorageError, StorageResult};
|
||||
use crate::storage::{
|
||||
RawByHashEntry, RocksDbMemoryDbSnapshot, RocksStore, StorageError, StorageResult,
|
||||
memory_db_snapshot_for_column_families,
|
||||
};
|
||||
|
||||
const RAW_BY_HASH_KEY_PREFIX: &str = "rawbyhash:";
|
||||
const RAW_BLOB_KEY_PREFIX: &str = "rawblob:";
|
||||
@@ -167,6 +170,10 @@ impl ExternalRawStoreDb {
|
||||
pub fn path(&self) -> &PathBuf {
|
||||
&self.path
|
||||
}
|
||||
|
||||
pub(crate) fn memory_snapshot(&self, label: impl Into<String>) -> RocksDbMemoryDbSnapshot {
|
||||
memory_db_snapshot_for_column_families(label, self.db.as_ref(), None)
|
||||
}
|
||||
}
|
||||
|
||||
impl ExternalRepoBytesDb {
|
||||
@@ -234,6 +241,10 @@ impl ExternalRepoBytesDb {
|
||||
pub fn path(&self) -> &PathBuf {
|
||||
&self.path
|
||||
}
|
||||
|
||||
pub(crate) fn memory_snapshot(&self, label: impl Into<String>) -> RocksDbMemoryDbSnapshot {
|
||||
memory_db_snapshot_for_column_families(label, self.db.as_ref(), None)
|
||||
}
|
||||
}
|
||||
|
||||
impl RawObjectStore for RocksStore {
|
||||
|
||||
Reference in New Issue
Block a user