diff --git a/src/graph/validator/MutateValidator.cpp b/src/graph/validator/MutateValidator.cpp index 988e2f249fc..d59072d83a9 100644 --- a/src/graph/validator/MutateValidator.cpp +++ b/src/graph/validator/MutateValidator.cpp @@ -46,7 +46,7 @@ Status InsertVerticesValidator::check() { } auto tagItems = sentence->tagItems(); - if (!FLAGS_use_vertex_key && tagItems.empty()) { + if (!FLAGS_graph_use_vertex_key && tagItems.empty()) { return Status::SemanticError("Insert vertex is forbidden, please speicify the tag"); }