fix query shard inUse leak (#27765)

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
pull/27785/head
wei liu 2023-10-18 19:30:09 +08:00 committed by GitHub
parent 77838b29ae
commit e5d0285d11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -663,8 +663,8 @@ func (node *QueryNode) ReleaseSegments(ctx context.Context, in *querypb.ReleaseS
case querypb.DataScope_Historical:
delta += node.metaReplica.removeSegment(id, segmentTypeSealed)
case querypb.DataScope_All:
node.metaReplica.removeSegment(id, segmentTypeSealed)
delta += node.metaReplica.removeSegment(id, segmentTypeGrowing)
node.metaReplica.removeSegment(id, segmentTypeGrowing)
delta += node.metaReplica.removeSegment(id, segmentTypeSealed)
}
}