Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix incorrect type alias (#14679)
Browse files Browse the repository at this point in the history
zwang28 authored and Little-Wallace committed Jan 20, 2024
1 parent 5618a1e commit 894893c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/meta/src/hummock/manager/checkpoint.rs
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ use risingwave_hummock_sdk::compaction_group::hummock_version_ext::{
object_size_map, summarize_group_deltas,
};
use risingwave_hummock_sdk::version::HummockVersion;
use risingwave_hummock_sdk::HummockSstableObjectId;
use risingwave_hummock_sdk::HummockVersionId;
use risingwave_pb::hummock::hummock_version_checkpoint::{PbStaleObjects, StaleObjects};
use risingwave_pb::hummock::{PbHummockVersionArchive, PbHummockVersionCheckpoint};

@@ -34,7 +34,7 @@ use crate::hummock::HummockManager;
#[derive(Default)]
pub struct HummockVersionCheckpoint {
pub version: HummockVersion,
pub stale_objects: HashMap<HummockSstableObjectId, PbStaleObjects>,
pub stale_objects: HashMap<HummockVersionId, PbStaleObjects>,
}

impl HummockVersionCheckpoint {
@@ -44,7 +44,7 @@ impl HummockVersionCheckpoint {
stale_objects: checkpoint
.stale_objects
.iter()
.map(|(object_id, objects)| (*object_id as HummockSstableObjectId, objects.clone()))
.map(|(version_id, objects)| (*version_id as HummockVersionId, objects.clone()))
.collect(),
}
}

0 comments on commit 894893c

Please sign in to comment.