struct ovsdb_idl_row *row;
row = CONTAINER_OF(node, struct ovsdb_idl_row, hmap_node);
- if (!ovsdb_idl_row_is_orphan(row)) {
+ if (row->new || !ovsdb_idl_row_is_orphan(row)) {
return row;
}
}
}
void
-ovsdb_idl_txn_delete(struct ovsdb_idl_row *row)
+ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_)
{
+ struct ovsdb_idl_row *row = (struct ovsdb_idl_row *) row_;
+
assert(row->new != NULL);
if (!row->old) {
ovsdb_idl_row_clear_new(row);
row->new = NULL;
}
-struct ovsdb_idl_row *
+const struct ovsdb_idl_row *
ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn,
const struct ovsdb_idl_table_class *class)
{