mirror of https://github.com/milvus-io/milvus.git
release collection synchronously (#5798)
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/5807/head
parent
bf39644457
commit
d6f7fbf19f
|
@ -400,7 +400,7 @@ func (r *releaseCollectionTask) Execute(ctx context.Context) error {
|
|||
collection.setReleaseTime(r.req.Base.Timestamp)
|
||||
|
||||
const gracefulReleaseTime = 3
|
||||
go func() {
|
||||
func() { // release synchronously
|
||||
errMsg := "release collection failed, collectionID = " + strconv.FormatInt(r.req.CollectionID, 10) + ", err = "
|
||||
time.Sleep(gracefulReleaseTime * time.Second)
|
||||
|
||||
|
|
Loading…
Reference in New Issue