Fix delete failed in query node (#12302)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-11-26 16:15:16 +08:00 committed by GitHub
parent b6d0150dc5
commit dbcb153687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -20,6 +20,7 @@ import (
"go.uber.org/zap"
"github.com/milvus-io/milvus/internal/log"
"github.com/milvus-io/milvus/internal/util/typeutil"
)
type tSafeWatcher struct {
@ -85,7 +86,7 @@ func newTSafe(ctx context.Context, channel Channel) tSafer {
watcherList: make([]*tSafeWatcher, 0),
tSafeChan: make(chan tSafeMsg, channelSize),
tSafeRecord: make(map[UniqueID]Timestamp),
tSafe: math.MaxUint64,
tSafe: typeutil.ZeroTimestamp,
}
return t
}

View File

@ -146,8 +146,7 @@ func (t *tSafeReplica) registerTSafeWatcher(vChannel Channel, watcher *tSafeWatc
if err != nil {
return err
}
safer.registerTSafeWatcher(watcher)
return nil
return safer.registerTSafeWatcher(watcher)
}
func newTSafeReplica() TSafeReplicaInterface {