mirror of https://github.com/milvus-io/milvus.git
Fix insert search concurrency problem (#20065)
Signed-off-by: yangxuan <xuan.yang@zilliz.com> Signed-off-by: yangxuan <xuan.yang@zilliz.com>pull/20105/head
parent
346b2ac2f2
commit
c24244240e
|
@ -9,6 +9,7 @@
|
|||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
||||
// or implied. See the License for the specific language governing permissions and limitations under the License
|
||||
|
||||
#include <cstddef>
|
||||
#include "common/BitsetView.h"
|
||||
#include "common/QueryInfo.h"
|
||||
#include "SearchOnGrowing.h"
|
||||
|
@ -86,7 +87,7 @@ SearchOnGrowing(const segcore::SegmentGrowingImpl& segment,
|
|||
SearchResult& results) {
|
||||
auto& schema = segment.get_schema();
|
||||
auto& record = segment.get_insert_record();
|
||||
auto active_count = segment.get_active_count(timestamp);
|
||||
auto active_count = std::min(int64_t(bitset.size()), segment.get_active_count(timestamp));
|
||||
|
||||
// step 1.1: get meta
|
||||
// step 1.2: get which vector field to search
|
||||
|
|
Loading…
Reference in New Issue