[skip ci] Add comment for set child task (#9837)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/9770/head
xige-16 2021-10-13 21:26:33 +08:00 committed by GitHub
parent c84600a496
commit e481a2775a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,8 @@ func (bt *BaseTask) GetParentTask() task {
return bt.parentTask
}
// GetChildTask function returns all the child tasks of the trigger task
// Child task may be loadSegmentTask, watchDmChannelTask or watchQueryChannelTask
func (bt *BaseTask) GetChildTask() []task {
bt.childTasksMu.RLock()
defer bt.childTasksMu.RUnlock()