X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Fexecution.c;h=708cc60dd58352090b7f9bcf7e09774ec2c6fc18;hb=1c2e2d2fc87c9435b6fe33112b0ddaab59f507c5;hp=9b18ec94e098e361001576ff8395dc0731dc5449;hpb=19b48a816b9af445ff71269ba7219b64f763ca18;p=openvswitch diff --git a/ovsdb/execution.c b/ovsdb/execution.c index 9b18ec94..708cc60d 100644 --- a/ovsdb/execution.c +++ b/ovsdb/execution.c @@ -292,13 +292,13 @@ ovsdb_execute_insert(struct ovsdb_execution *x, struct ovsdb_parser *parser, struct ovsdb_symbol *symbol; symbol = ovsdb_symbol_table_insert(x->symtab, json_string(uuid_name)); - if (symbol->used) { + if (symbol->created) { return ovsdb_syntax_error(uuid_name, "duplicate uuid-name", "This \"uuid-name\" appeared on an " "earlier \"insert\" operation."); } row_uuid = symbol->uuid; - symbol->used = true; + symbol->created = true; } else { uuid_generate(&row_uuid); }