Remove redundant variable load (#9452)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
Cai Yudong 2021-10-08 14:49:08 +08:00 committed by GitHub
parent 4e44e885fc
commit 3dac2611b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -291,9 +291,6 @@ func (ibNode *insertBufferNode) Operate(in []Msg) []Msg {
log.Debug(".. Buffer not empty, flushing ..")
finishCh := make(chan segmentFlushUnit, 1)
// Since buffer is not empty, so there must be data for key currentSegID
bd, _ := ibNode.insertBuffer.Load(currentSegID)
ibNode.flushMap.Store(currentSegID, bd.(*BufferData).buffer)
clearFn := func() {
finishCh <- segmentFlushUnit{field2Path: nil}