提交 90d69658 编写于 作者: S sunby 提交者: yefu.chen

Fix master meta table bugs

Signed-off-by: Nsunby <bingyi.sun@zilliz.com>
上级 dc373628
......@@ -695,7 +695,7 @@ func (mt *metaTable) GetNotIndexedSegments(collName string, fieldName string, in
func (mt *metaTable) GetIndexByName(collName string, fieldName string, indexName string) ([]pb.IndexInfo, error) {
mt.ddLock.RLock()
mt.ddLock.RUnlock()
defer mt.ddLock.RUnlock()
collID, ok := mt.collName2ID[collName]
if !ok {
......@@ -746,7 +746,7 @@ func (mt *metaTable) GetIndexByName(collName string, fieldName string, indexName
func (mt *metaTable) GetIndexByID(indexID typeutil.UniqueID) (*pb.IndexInfo, error) {
mt.ddLock.RLock()
mt.ddLock.RUnlock()
defer mt.ddLock.RUnlock()
indexInfo, ok := mt.indexID2Meta[indexID]
if !ok {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册