From f321236af10d731728cc5523fa4424ba1a8ca734 Mon Sep 17 00:00:00 2001 From: Buqian Zheng Date: Tue, 4 Jun 2024 11:35:29 +0800 Subject: [PATCH] make GetIsSparse const Signed-off-by: Buqian Zheng --- include/knowhere/dataset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/knowhere/dataset.h b/include/knowhere/dataset.h index 2cc9927af..4d5ba3915 100644 --- a/include/knowhere/dataset.h +++ b/include/knowhere/dataset.h @@ -213,7 +213,7 @@ class DataSet : public std::enable_shared_from_this { } bool - GetIsSparse() { + GetIsSparse() const { std::unique_lock lock(mutex_); return this->is_sparse; }