mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
fix: [2.5] fix chunk cache madvise when sparse raw data is mmaped (#39146)
instead of marking as not supported, ChunkedSparseFloatColumn::DataByteSize can simply use the impl of super class. pr: https://github.com/milvus-io/milvus/pull/39145 issue: #39158 Signed-off-by: Buqian Zheng <zhengbuqian@gmail.com>
This commit is contained in:
parent
6b127d4f5f
commit
a43720f779
@ -282,14 +282,6 @@ class ChunkedSparseFloatColumn : public ChunkedColumnBase {
|
||||
std::dynamic_pointer_cast<SparseFloatVectorChunk>(chunk)->Dim());
|
||||
}
|
||||
|
||||
// This is used to advice mmap prefetch, we don't currently support mmap for
|
||||
// sparse float vector thus not implemented for now.
|
||||
size_t
|
||||
DataByteSize() const override {
|
||||
PanicInfo(ErrorCode::Unsupported,
|
||||
"ByteSize not supported for sparse float column");
|
||||
}
|
||||
|
||||
SpanBase
|
||||
Span(int64_t chunk_id) const override {
|
||||
PanicInfo(ErrorCode::Unsupported,
|
||||
@ -303,7 +295,6 @@ class ChunkedSparseFloatColumn : public ChunkedColumnBase {
|
||||
|
||||
private:
|
||||
int64_t dim_ = 0;
|
||||
std::vector<knowhere::sparse::SparseRow<float>> vec_;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user