From ff69a891d8503c1f5f5fedd6ba7931fdff54a27b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ante=20Pu=C5=A1i=C4=87?= Date: Tue, 30 Jan 2024 10:45:37 +0100 Subject: [PATCH] Fix syntax errors --- src/storage/v2/durability/wal.cpp | 6 ++++-- src/storage/v2/inmemory/storage.cpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/storage/v2/durability/wal.cpp b/src/storage/v2/durability/wal.cpp index 67213c369..dfeb9c447 100644 --- a/src/storage/v2/durability/wal.cpp +++ b/src/storage/v2/durability/wal.cpp @@ -948,18 +948,20 @@ RecoveryInfo LoadWal(const std::filesystem::path &path, RecoveredIndicesAndConst "The label index stats doesn't exist!"); break; } - case WalDeltaData::Type::TEXT_INDEX_CREATE: + case WalDeltaData::Type::TEXT_INDEX_CREATE: { auto index_name = delta.operation_text.index_name; auto label = LabelId::FromUint(name_id_mapper->NameToId(delta.operation_text.label)); AddRecoveredIndexConstraint(&indices_constraints->indices.text, {index_name, label}, "The text index already exists!"); break; - case WalDeltaData::Type::TEXT_INDEX_DROP: + } + case WalDeltaData::Type::TEXT_INDEX_DROP: { auto index_name = delta.operation_text.index_name; auto label = LabelId::FromUint(name_id_mapper->NameToId(delta.operation_text.label)); RemoveRecoveredIndexConstraint(&indices_constraints->indices.text, {index_name, label}, "The text index doesn't exist!"); break; + } case WalDeltaData::Type::EXISTENCE_CONSTRAINT_CREATE: { auto label_id = LabelId::FromUint(name_id_mapper->NameToId(delta.operation_label_property.label)); auto property_id = PropertyId::FromUint(name_id_mapper->NameToId(delta.operation_label_property.property)); diff --git a/src/storage/v2/inmemory/storage.cpp b/src/storage/v2/inmemory/storage.cpp index 85f022de3..2d54435d5 100644 --- a/src/storage/v2/inmemory/storage.cpp +++ b/src/storage/v2/inmemory/storage.cpp @@ -1983,7 +1983,7 @@ bool InMemoryStorage::AppendToWalDataDefinition(const Transaction &transaction, } break; case MetadataDelta::Action::TEXT_INDEX_DROP: { const auto &info = md_delta.text; - AppendToWalDataDefinition(durability::StorageMetadataOperation::TEXT_INDEX_CREATE, info.index_name, info.label, + AppendToWalDataDefinition(durability::StorageMetadataOperation::TEXT_INDEX_DROP, info.index_name, info.label, final_commit_timestamp); } break; case MetadataDelta::Action::EXISTENCE_CONSTRAINT_CREATE: {