Skip to content

Commit

Permalink
fix: fill the metric type field in the LoadMetaInfo object (milvus-io…
Browse files Browse the repository at this point in the history
…#35962)

- issue: milvus-io#35960

Signed-off-by: SimFG <[email protected]>
  • Loading branch information
SimFG authored and chyezh committed Sep 11, 2024
1 parent 20ba2e5 commit b352b1c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion internal/core/src/query/SearchOnSealed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ SearchOnSealedIndex(const Schema& schema,
// Keep the field_indexing smart pointer, until all reference by raw dropped.
auto field_indexing = record.get_field_indexing(field_id);
AssertInfo(field_indexing->metric_type_ == search_info.metric_type_,
"Metric type of field index isn't the same with search info");
"Metric type of field index isn't the same with search info,"
"field index: {}, search info: {}", field_indexing->metric_type_, search_info.metric_type_);

auto dataset = knowhere::GenDataSet(num_queries, dim, query_data);
dataset->SetIsSparse(is_sparse);
Expand Down
2 changes: 1 addition & 1 deletion internal/core/src/segcore/ConcurrentVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class ThreadSafeVector {

int64_t
size() const {
std::lock_guard lck(mutex_);
std::shared_lock lck(mutex_);
return size_;
}

Expand Down
3 changes: 2 additions & 1 deletion internal/datanode/compaction/priority_queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"container/heap"
"testing"

"github.com/milvus-io/milvus/internal/storage"
"github.com/stretchr/testify/suite"

"github.com/milvus-io/milvus/internal/storage"
)

type PriorityQueueSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/datanode/compaction/segment_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"context"
"math"

"github.com/samber/lo"
"go.uber.org/atomic"
"go.uber.org/zap"

Expand All @@ -21,7 +22,6 @@ import (
"github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/util/paramtable"
"github.com/milvus-io/milvus/pkg/util/typeutil"
"github.com/samber/lo"
)

// Not concurrent safe.
Expand Down

0 comments on commit b352b1c

Please sign in to comment.