20260410 完成五个rir 基于cir的三方回放,raw by hash 独立db,发现内存占用大,连续大rir 录制发生oom
This commit is contained in:
@@ -94,12 +94,7 @@ fn rsync_fallback_breakdown_luys_cloud() {
|
||||
let sha256_hex = hex::encode(sha2::Sha256::digest(bytes));
|
||||
let mut raw = RawByHashEntry::from_bytes(sha256_hex.clone(), bytes.clone());
|
||||
raw.origin_uris.push(uri.clone());
|
||||
raw.object_type = Some(
|
||||
uri.rsplit('.')
|
||||
.next()
|
||||
.unwrap_or("bin")
|
||||
.to_ascii_lowercase(),
|
||||
);
|
||||
raw.object_type = Some(uri.rsplit('.').next().unwrap_or("bin").to_ascii_lowercase());
|
||||
raw.encoding = Some("der".to_string());
|
||||
store.put_raw_by_hash_entry(&raw).expect("put raw_by_hash");
|
||||
store
|
||||
@@ -107,12 +102,7 @@ fn rsync_fallback_breakdown_luys_cloud() {
|
||||
rsync_uri: uri.clone(),
|
||||
current_hash: Some(sha256_hex),
|
||||
repository_source: Some(rsync_base_uri.clone()),
|
||||
object_type: Some(
|
||||
uri.rsplit('.')
|
||||
.next()
|
||||
.unwrap_or("bin")
|
||||
.to_ascii_lowercase(),
|
||||
),
|
||||
object_type: Some(uri.rsplit('.').next().unwrap_or("bin").to_ascii_lowercase()),
|
||||
state: RepositoryViewState::Present,
|
||||
})
|
||||
.expect("put repository view");
|
||||
|
||||
Reference in New Issue
Block a user