From e9387de4a2601ed2768baaa9bc92a3ef27f1145a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 28 Feb 2011 12:43:15 -0800 Subject: ovsdb-data: Rename 'used' to 'created' in struct ovsdb_symbol. The name 'created' better reflects the actual meaning of this member: in both ovsdb and ovs-vsctl, it is true if a row has been created with the symbol's UUID and false otherwise. --- ovsdb/execution.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ovsdb/execution.c') 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); } -- cgit v1.2.3