Fix syntax errors
This commit is contained in:
parent
857dbfb84e
commit
ff69a891d8
@ -948,18 +948,20 @@ RecoveryInfo LoadWal(const std::filesystem::path &path, RecoveredIndicesAndConst
|
|||||||
"The label index stats doesn't exist!");
|
"The label index stats doesn't exist!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WalDeltaData::Type::TEXT_INDEX_CREATE:
|
case WalDeltaData::Type::TEXT_INDEX_CREATE: {
|
||||||
auto index_name = delta.operation_text.index_name;
|
auto index_name = delta.operation_text.index_name;
|
||||||
auto label = LabelId::FromUint(name_id_mapper->NameToId(delta.operation_text.label));
|
auto label = LabelId::FromUint(name_id_mapper->NameToId(delta.operation_text.label));
|
||||||
AddRecoveredIndexConstraint(&indices_constraints->indices.text, {index_name, label},
|
AddRecoveredIndexConstraint(&indices_constraints->indices.text, {index_name, label},
|
||||||
"The text index already exists!");
|
"The text index already exists!");
|
||||||
break;
|
break;
|
||||||
case WalDeltaData::Type::TEXT_INDEX_DROP:
|
}
|
||||||
|
case WalDeltaData::Type::TEXT_INDEX_DROP: {
|
||||||
auto index_name = delta.operation_text.index_name;
|
auto index_name = delta.operation_text.index_name;
|
||||||
auto label = LabelId::FromUint(name_id_mapper->NameToId(delta.operation_text.label));
|
auto label = LabelId::FromUint(name_id_mapper->NameToId(delta.operation_text.label));
|
||||||
RemoveRecoveredIndexConstraint(&indices_constraints->indices.text, {index_name, label},
|
RemoveRecoveredIndexConstraint(&indices_constraints->indices.text, {index_name, label},
|
||||||
"The text index doesn't exist!");
|
"The text index doesn't exist!");
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case WalDeltaData::Type::EXISTENCE_CONSTRAINT_CREATE: {
|
case WalDeltaData::Type::EXISTENCE_CONSTRAINT_CREATE: {
|
||||||
auto label_id = LabelId::FromUint(name_id_mapper->NameToId(delta.operation_label_property.label));
|
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));
|
auto property_id = PropertyId::FromUint(name_id_mapper->NameToId(delta.operation_label_property.property));
|
||||||
|
@ -1983,7 +1983,7 @@ bool InMemoryStorage::AppendToWalDataDefinition(const Transaction &transaction,
|
|||||||
} break;
|
} break;
|
||||||
case MetadataDelta::Action::TEXT_INDEX_DROP: {
|
case MetadataDelta::Action::TEXT_INDEX_DROP: {
|
||||||
const auto &info = md_delta.text;
|
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);
|
final_commit_timestamp);
|
||||||
} break;
|
} break;
|
||||||
case MetadataDelta::Action::EXISTENCE_CONSTRAINT_CREATE: {
|
case MetadataDelta::Action::EXISTENCE_CONSTRAINT_CREATE: {
|
||||||
|
Loading…
Reference in New Issue
Block a user