Skip to content

Commit

Permalink
refactor(storage): refactor compaction group manager trx
Browse files Browse the repository at this point in the history
  • Loading branch information
Li0k committed Jun 3, 2024
1 parent af1c1ea commit 525773d
Show file tree
Hide file tree
Showing 8 changed files with 215 additions and 166 deletions.
2 changes: 1 addition & 1 deletion src/meta/node/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ pub async fn start_service_as_election_leader(
);
let health_srv = HealthServiceImpl::new();
let backup_srv = BackupServiceImpl::new(backup_manager);
let telemetry_srv = TelemetryInfoServiceImpl::new(env.meta_store_ref());
let telemetry_srv = TelemetryInfoServiceImpl::new(env.meta_store());
let system_params_srv = SystemParamsServiceImpl::new(env.system_params_manager_impl_ref());
let session_params_srv = SessionParamsServiceImpl::new(env.session_params_manager_impl_ref());
let serving_srv =
Expand Down
2 changes: 1 addition & 1 deletion src/meta/src/hummock/compactor_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl CompactorManagerInner {
use risingwave_meta_model_v2::compaction_task;
use sea_orm::EntityTrait;
// Retrieve the existing task assignments from metastore.
let task_assignment: Vec<CompactTaskAssignment> = match env.meta_store() {
let task_assignment: Vec<CompactTaskAssignment> = match env.meta_store_ref() {
MetaStoreImpl::Kv(meta_store) => CompactTaskAssignment::list(meta_store).await?,
MetaStoreImpl::Sql(sql_meta_store) => compaction_task::Entity::find()
.all(&sql_meta_store.conn)
Expand Down
Loading

0 comments on commit 525773d

Please sign in to comment.