From 4c0d8ae056944921648e98292efeb47fb330c7f8 Mon Sep 17 00:00:00 2001 From: Patrick16262 <1626295293@qq.com> Date: Thu, 13 Jun 2024 01:32:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9cmakelist=EF=BC=8C=E5=BC=BA?= =?UTF-8?q?=E5=88=B6=E5=BC=80=E5=90=AFmvcc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 ++ src/observer/storage/index/index.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 34df416..6c415e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,8 @@ OPTION(ENABLE_NOPIE "Enable no pie" OFF) OPTION(CONCURRENCY "Support concurrency operations" ON) OPTION(STATIC_STDLIB "Link std library static or dynamic, such as libgcc, libstdc++, libasan" OFF) +SET(CONCURRENCY ON) + # ================== # === Compiler ===== # ================== diff --git a/src/observer/storage/index/index.h b/src/observer/storage/index/index.h index f02b426..47c1800 100644 --- a/src/observer/storage/index/index.h +++ b/src/observer/storage/index/index.h @@ -83,6 +83,9 @@ class Index protected: IndexMeta index_meta_; ///< 索引的元数据 FieldMeta field_meta_; ///< 当前实现仅考虑一个字段的索引 + + + bool is_unique_; ///< 是否是唯一索引 }; /**