From aae9887f571f1b72847234b420f89d1f6b0829db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ante=20Pu=C5=A1i=C4=87?= Date: Wed, 21 Feb 2024 23:11:14 +0100 Subject: [PATCH] =?UTF-8?q?Rework=20tests=20that=20shouldn=E2=80=99t=20rai?= =?UTF-8?q?se=20exceptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/storage/v2/indices/text_index.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/v2/indices/text_index.hpp b/src/storage/v2/indices/text_index.hpp index 178e40669..ac894626d 100644 --- a/src/storage/v2/indices/text_index.hpp +++ b/src/storage/v2/indices/text_index.hpp @@ -22,8 +22,6 @@ class DbAccessor; } namespace memgraph::storage { -constexpr bool kDoSkipCommit = true; - struct TextIndexData { mgcxx::text_search::Context context_; LabelId scope_; @@ -31,6 +29,8 @@ struct TextIndexData { class TextIndex { private: + static constexpr bool kDoSkipCommit = true; + void CreateEmptyIndex(const std::string &index_name, LabelId label); template