ovsdb-idl: Drop unnecessary allocation from ovsdb_idl_txn_insert().
authorBen Pfaff <blp@nicira.com>
Thu, 10 Jun 2010 21:09:51 +0000 (14:09 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 23 Jun 2010 19:43:02 +0000 (12:43 -0700)
There's no need to allocate row->written ahead of time because the code
that can use it allocates it on demand if row->written is NULL.

lib/ovsdb-idl.c

index 2c9b95f..aa2f2ce 100644 (file)
@@ -1517,7 +1517,6 @@ ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn,
 
     row->table = ovsdb_idl_table_from_class(txn->idl, class);
     row->new = xmalloc(class->n_columns * sizeof *row->new);
-    row->written = bitmap_allocate(class->n_columns);
     hmap_insert(&row->table->rows, &row->hmap_node, uuid_hash(&row->uuid));
     hmap_insert(&txn->txn_rows, &row->txn_node, uuid_hash(&row->uuid));
     return row;