2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

ovsdb: Get rid of "declare" operation.

It's more elegant, and just as easy to implement, if we allow a
"named-uuid" to be a forward reference to a "uuid-name" in a later
"insert" operation.
This commit is contained in:
Ben Pfaff
2010-02-08 16:03:21 -08:00
parent bfe8e67ad5
commit fbf925e45d
13 changed files with 66 additions and 154 deletions

View File

@@ -1103,16 +1103,6 @@ ovsdb_idl_txn_commit(struct ovsdb_idl_txn *txn)
&column->type));
}
}
if (row->new && !row->old) {
struct json *op;
op = json_object_create();
json_array_add(operations, op);
json_object_put_string(op, "op", "declare");
json_object_put(op, "uuid-name",
json_string_create_nocopy(
uuid_name_from_uuid(&row->uuid)));
}
}
/* Add updates. */