Pick Fix endless appending sids (#22989)

Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
pull/23007/head
Xiaofan 2023-03-25 14:55:57 +08:00 committed by GitHub
parent f1a389e910
commit 51c414c0c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -97,10 +97,12 @@ func (mt *mergedTimeTickerSender) isClosed() bool {
func (mt *mergedTimeTickerSender) work() {
defer mt.wg.Done()
var sids []int64
var isDiffTs bool
lastTs := uint64(0)
for {
var (
isDiffTs bool
sids []int64
)
mt.cond.L.Lock()
if mt.isClosed() {
mt.cond.L.Unlock()