[skip ci] Add comments for UpdateStateCode (#10858)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/10865/head
xige-16 2021-10-28 23:52:42 +08:00 committed by GitHub
parent 6ae5b926c1
commit 203da4be2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -245,6 +245,7 @@ func (node *QueryNode) Stop() error {
return nil
}
// UpdateStateCode updata the state of query node, which can be initializing, healthy, and abnormal
func (node *QueryNode) UpdateStateCode(code internalpb.StateCode) {
node.stateCode.Store(code)
}