Skip to content

Commit

Permalink
new OP_TYPEs
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Sep 12, 2024
1 parent abb0ab3 commit 26c70d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/shirakami/scheme.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,12 @@ enum class OP_TYPE : std::int32_t {
BEGIN,
COMMIT,
DELETE,
DELSERT,
INSERT,
NONE,
SCAN,
SEARCH,
TOMBSTONE,
UPDATE,
UPSERT,
};
Expand All @@ -362,6 +364,8 @@ inline constexpr std::string_view to_string_view(const OP_TYPE op) noexcept {
return "COMMIT"sv;
case OP_TYPE::DELETE:

Check warning on line 365 in include/shirakami/scheme.h

View workflow job for this annotation

GitHub Actions / Clang-Tidy

bugprone-branch-clone

switch has 2 consecutive identical branches
return "DELETE"sv;
case OP_TYPE::DELSERT:
return "DELETE"sv;
case OP_TYPE::INSERT:
return "INSERT"sv;
case OP_TYPE::NONE:
Expand All @@ -370,6 +374,8 @@ inline constexpr std::string_view to_string_view(const OP_TYPE op) noexcept {
return "SCAN"sv;
case OP_TYPE::SEARCH:
return "SEARCH"sv;
case OP_TYPE::TOMBSTONE:
return "TOMBSTONE"sv;
case OP_TYPE::UPDATE:
return "UPDATE"sv;
case OP_TYPE::UPSERT:
Expand Down

0 comments on commit 26c70d5

Please sign in to comment.