diff options
author | Ben Pfaff <blp@nicira.com> | 2011-02-28 12:43:15 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-03-10 11:24:00 -0800 |
commit | e9387de4a2601ed2768baaa9bc92a3ef27f1145a (patch) | |
tree | 93b454fb139b59c0c5959d8dca313b33139ac67c /ovsdb/execution.c | |
parent | 71abd20a1789fb10a7a346ca1a029a76e3f10041 (diff) |
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.
Diffstat (limited to 'ovsdb/execution.c')
-rw-r--r-- | ovsdb/execution.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |