Skip to content

Commit

Permalink
修改cmakelist,强制开启mvcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick16262 committed Jun 12, 2024
1 parent 892a672 commit 4c0d8ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 =====
# ==================
Expand Down
3 changes: 3 additions & 0 deletions src/observer/storage/index/index.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ class Index
protected:
IndexMeta index_meta_; ///< 索引的元数据
FieldMeta field_meta_; ///< 当前实现仅考虑一个字段的索引


bool is_unique_; ///< 是否是唯一索引
};

/**
Expand Down

0 comments on commit 4c0d8ae

Please sign in to comment.