Update notes
This commit is contained in:
parent
d28f7ddea8
commit
903ed3f25a
@ -539,7 +539,7 @@ uint64_t InMemoryReplicationHandlers::ReadAndApplyDelta(storage::InMemoryStorage
|
|||||||
auto vertex = transaction->FindVertex(delta.vertex_add_remove_label.gid, View::NEW);
|
auto vertex = transaction->FindVertex(delta.vertex_add_remove_label.gid, View::NEW);
|
||||||
if (!vertex)
|
if (!vertex)
|
||||||
throw utils::BasicException("Invalid transaction! Please raise an issue, {}:{}", __FILE__, __LINE__);
|
throw utils::BasicException("Invalid transaction! Please raise an issue, {}:{}", __FILE__, __LINE__);
|
||||||
// NOTE: Phase 1 of the text search feature doesn't have replication in scope
|
// NOTE: Text search doesn’t have replication in scope yet (Phases 1 and 2)
|
||||||
auto ret = vertex->AddLabel(transaction->NameToLabel(delta.vertex_add_remove_label.label));
|
auto ret = vertex->AddLabel(transaction->NameToLabel(delta.vertex_add_remove_label.label));
|
||||||
if (ret.HasError() || !ret.GetValue())
|
if (ret.HasError() || !ret.GetValue())
|
||||||
throw utils::BasicException("Invalid transaction! Please raise an issue, {}:{}", __FILE__, __LINE__);
|
throw utils::BasicException("Invalid transaction! Please raise an issue, {}:{}", __FILE__, __LINE__);
|
||||||
@ -552,7 +552,7 @@ uint64_t InMemoryReplicationHandlers::ReadAndApplyDelta(storage::InMemoryStorage
|
|||||||
auto vertex = transaction->FindVertex(delta.vertex_add_remove_label.gid, View::NEW);
|
auto vertex = transaction->FindVertex(delta.vertex_add_remove_label.gid, View::NEW);
|
||||||
if (!vertex)
|
if (!vertex)
|
||||||
throw utils::BasicException("Invalid transaction! Please raise an issue, {}:{}", __FILE__, __LINE__);
|
throw utils::BasicException("Invalid transaction! Please raise an issue, {}:{}", __FILE__, __LINE__);
|
||||||
// NOTE: Phase 1 of the text search feature doesn't have replication in scope
|
// NOTE: Text search doesn’t have replication in scope yet (Phases 1 and 2)
|
||||||
auto ret = vertex->RemoveLabel(transaction->NameToLabel(delta.vertex_add_remove_label.label));
|
auto ret = vertex->RemoveLabel(transaction->NameToLabel(delta.vertex_add_remove_label.label));
|
||||||
if (ret.HasError() || !ret.GetValue())
|
if (ret.HasError() || !ret.GetValue())
|
||||||
throw utils::BasicException("Invalid transaction! Please raise an issue, {}:{}", __FILE__, __LINE__);
|
throw utils::BasicException("Invalid transaction! Please raise an issue, {}:{}", __FILE__, __LINE__);
|
||||||
@ -767,11 +767,11 @@ uint64_t InMemoryReplicationHandlers::ReadAndApplyDelta(storage::InMemoryStorage
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WalDeltaData::Type::TEXT_INDEX_CREATE: {
|
case WalDeltaData::Type::TEXT_INDEX_CREATE: {
|
||||||
// NOTE: Phase 1 of the text search feature doesn't have replication in scope
|
// NOTE: Text search doesn’t have replication in scope yet (Phases 1 and 2)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WalDeltaData::Type::TEXT_INDEX_DROP: {
|
case WalDeltaData::Type::TEXT_INDEX_DROP: {
|
||||||
// NOTE: Phase 1 of the text search feature doesn't have replication in scope
|
// NOTE: Text search doesn’t have replication in scope yet (Phases 1 and 2)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WalDeltaData::Type::EXISTENCE_CONSTRAINT_CREATE: {
|
case WalDeltaData::Type::EXISTENCE_CONSTRAINT_CREATE: {
|
||||||
|
@ -354,7 +354,8 @@ void ReplicaStream::AppendOperation(durability::StorageMetadataOperation operati
|
|||||||
const std::set<PropertyId> &properties, const LabelIndexStats &stats,
|
const std::set<PropertyId> &properties, const LabelIndexStats &stats,
|
||||||
const LabelPropertyIndexStats &property_stats, uint64_t timestamp) {
|
const LabelPropertyIndexStats &property_stats, uint64_t timestamp) {
|
||||||
replication::Encoder encoder(stream_.GetBuilder());
|
replication::Encoder encoder(stream_.GetBuilder());
|
||||||
EncodeOperation(&encoder, storage_->name_id_mapper_.get(), operation, label, properties, stats, property_stats,
|
// NOTE: Text search doesn’t have replication in scope yet (Phases 1 and 2) -> text index name not sent here
|
||||||
|
EncodeOperation(&encoder, storage_->name_id_mapper_.get(), operation, "", label, properties, stats, property_stats,
|
||||||
timestamp);
|
timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user