lib/ovsdb-idl.c
/* Destroys 'txn' and frees all associated memory.  If ovsdb_idl_txn_commit()
 * has been called for 'txn' but the commit is still incomplete (that is, the
 * last call returned TXN_INCOMPLETE) then the transaction may or may not still
 * end up committing at the database server, but the client will not be able to
 * get any further status information back. */
Destroys 'txn' and frees all associated memory.  If ovsdb_idl_txn_commit()
has been called for 'txn' but the commit is still incomplete (that is, the
last call returned TXN_INCOMPLETE) then the transaction may or may not still
end up committing at the database server, but the client will not be able to
get any further status information back.
Destroys ' txn ' and frees all associated memory . If ovsdb_idl_txn_commit () has been called for ' txn ' but the commit is still incomplete ( that is the last call returned TXN_INCOMPLETE ) then the transaction may or may not still end up committing at the database server but the client will not be able to get any further status information back .
void
ovsdb_idl_txn_destroy(struct ovsdb_idl_txn *txn)
{
    struct ovsdb_idl_txn_insert *insert, *next;
    json_destroy(txn->request_id);
    if (txn->status == TXN_INCOMPLETE) {
        hmap_remove(&txn->db->outstanding_txns, &txn->hmap_node);
    }
    ovsdb_idl_txn_abort(txn);
    ds_destroy(&txn->comment);
    free(txn->error);
    HMAP_FOR_EACH_SAFE (insert, next, hmap_node, &txn->inserted_rows) {
        free(insert);
    }
    hmap_destroy(&txn->inserted_rows);
    free(txn);
}
void ovsdb_idl_txn_destroy ( struct ovsdb_idl_txn * txn ) { struct ovsdb_idl_txn_insert * insert , * next ; json_destroy ( txn -> request_id ) ; if ( txn -> status == TXN_INCOMPLETE ) { hmap_remove ( & txn -> db -> outstanding_txns , & txn -> hmap_node ) ; } ovsdb_idl_txn_abort ( txn ) ; ds_destroy ( & txn -> comment ) ; free ( txn -> error ) ; HMAP_FOR_EACH_SAFE ( insert , next , hmap_node , & txn -> inserted_rows ) { free ( insert ) ; } hmap_destroy ( & txn -> inserted_rows ) ; free ( txn ) ; }
Destroys 'txn' and frees all associated memory.
Destroys ' txn ' and frees all associated memory .