Skip to content

Commit

Permalink
enhance: compaction use ChannelManager interface (#29530)
Browse files Browse the repository at this point in the history
Rewrite compaction_test.go

See also: #29447

Signed-off-by: yangxuan <[email protected]>
  • Loading branch information
XuanYang-cn authored Jan 2, 2024
1 parent 0db6b26 commit f1b6ccf
Show file tree
Hide file tree
Showing 2 changed files with 239 additions and 767 deletions.
4 changes: 2 additions & 2 deletions internal/datacoord/compaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ type compactionPlanHandler struct {

meta CompactionMeta
allocator allocator
chManager *ChannelManagerImpl
chManager ChannelManager
scheduler Scheduler
sessions SessionManager

Expand All @@ -120,7 +120,7 @@ type compactionPlanHandler struct {
stopWg sync.WaitGroup
}

func newCompactionPlanHandler(sessions SessionManager, cm *ChannelManagerImpl, meta CompactionMeta, allocator allocator,
func newCompactionPlanHandler(sessions SessionManager, cm ChannelManager, meta CompactionMeta, allocator allocator,
) *compactionPlanHandler {
return &compactionPlanHandler{
plans: make(map[int64]*compactionTask),
Expand Down
Loading

0 comments on commit f1b6ccf

Please sign in to comment.