Add assertion about primary label
This commit is contained in:
parent
392f6e2b73
commit
920ad277a5
@ -271,6 +271,7 @@ class DistributedCreateNodeCursor : public Cursor {
|
|||||||
msgs::NewVertex rqst;
|
msgs::NewVertex rqst;
|
||||||
MG_ASSERT(!node_info_.labels.empty(), "Cannot determine primary label");
|
MG_ASSERT(!node_info_.labels.empty(), "Cannot determine primary label");
|
||||||
const auto primary_label = node_info_.labels[0];
|
const auto primary_label = node_info_.labels[0];
|
||||||
|
MG_ASSERT(context.request_router->IsPrimaryLabel(primary_label), "First label has to be a primary label!");
|
||||||
// TODO(jbajic) Fix properties not send,
|
// TODO(jbajic) Fix properties not send,
|
||||||
// suggestion: ignore distinction between properties and primary keys
|
// suggestion: ignore distinction between properties and primary keys
|
||||||
// since schema validation is done on storage side
|
// since schema validation is done on storage side
|
||||||
|
Loading…
Reference in New Issue
Block a user