summaryrefslogtreecommitdiff
path: root/ovsdb/transaction.h
Commit message (Collapse)AuthorAgeFilesLines
* ovsdb: Warn when result of ovsdb_txn_commit() is ignored and fix caller.Justin Pettit2011-02-231-1/+2
| | | | | | | | ovsdb_txn_commit() may return a ovsdb_error structure, which should be freed by the caller. The only remaining caller that discards the result is in ovsdb_file_open__(), which this fixes. Suggested-by: Ben Pfaff <blp@nicira.com>
* ovsdb: Check for changed columns only once per transaction commit.Ben Pfaff2010-03-171-1/+2
| | | | | | | | | | | | | | | Until now, each part of a transaction commit that is interested in whether a column's value has changed has had to do a comparison of the old and new values itself. There can be several interested parties per commit (generally one for file storage and one for each remove OVSDB connection), so this seems like too much redundancy. This commit adds a bitmap to struct ovsdb_txn_row that tracks whether a column's value has actually changed, to reduce this overhead. As a convenient side effect of doing these checks up front, it then becomes easily possible to drop txn_rows (and txn_tables and entire txns) that become no-ops. (This probably fixes bug #2400, which reported that some no-ops actually report updates over monitors.)
* ovsdb: Add "comment" feature to transactions and make ovs-vsctl use them.Ben Pfaff2009-12-161-0/+3
| | | | | | The idea here is that transaction comments get copied to the ovsdb-server's transaction log, which can then make it clear later why a particular change was made to the database, to ease debugging.
* ovsdb: Add replication support and refactor files in terms of replication.Ben Pfaff2009-11-161-7/+8
| | | | | | | An upcoming commit will add support for replicating tables across JSON-RPC connection. As a prerequisite ovsdb itself must support basic replication. This commit adds that support and then reimplements the ovsdb file storage in terms of that replication.
* Initial implementation of OVSDB.Ben Pfaff2009-11-041-0/+41