[ovs-git] Open vSwitch: ovsdb: Compact databases online automatically and on-demand. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Mar 18 18:30:47 UTC 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  ada496b5cc123fca2913be8b73097934f528cec8 (commit)
       via  afe20d5c7092f31943e32ff2b9d99526fbfbc6cd (commit)
       via  daf03c53ee14a0227b43330be2e638b9ad9ce022 (commit)
       via  76f105d9be03588c2d5ec0b94ff769a1d269f2e4 (commit)
      from  5f55c39b21e69025045437ffbd3bb98fe6ce2e89 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ada496b5cc123fca2913be8b73097934f528cec8
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=ada496b5cc123fca2913be8b73097934f528cec8
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb: Compact databases online automatically and on-demand.
		
If the database grows fairly large, and we've written a fair number of
transactions to it, and it's been a while since the database was compacted,
then (after the next commit) compact the database.

Also, compact the database online if the "ovsdb-server/compact" command is
issued via unixctl.  I suspect that this feature will rarely if ever be
used in practice, but it's easier to test than compacting automatically.

Bug #2391.


commit afe20d5c7092f31943e32ff2b9d99526fbfbc6cd
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=afe20d5c7092f31943e32ff2b9d99526fbfbc6cd
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb: Rename ovsdb_file_replica to ovsdb_file.
		
This is in preparation for exposing ovsdb_file to clients outside this
translation unit.  These clients don't care that the ovsdb_file is an
ovsdb replica--that's an implementation detail--and so it makes sense to
rename it from their point of view.

This is just a search-and-replace plus reindenting where appropriate.


commit daf03c53ee14a0227b43330be2e638b9ad9ce022
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=daf03c53ee14a0227b43330be2e638b9ad9ce022
Author: Ben Pfaff <blp at nicira.com>
		
util: New functions get_cwd(), abs_file_name().
		
These will be used further in an upcoming commit.


commit 76f105d9be03588c2d5ec0b94ff769a1d269f2e4
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=76f105d9be03588c2d5ec0b94ff769a1d269f2e4
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb: Always set *dbp to null on failure in ovsdb_file_open__().
		
Found via inspection.  I do not know that this fixes a real bug.


-----------------------------------------------------------------------

Summary of changes:
 lib/daemon.c            |    6 +-
 lib/unixctl.c           |   12 +--
 lib/util.c              |   62 ++++++++
 lib/util.h              |    2 +
 lib/vlog-modules.def    |    1 +
 ovsdb/file.c            |  355 ++++++++++++++++++++++++++++++++++++++---------
 ovsdb/file.h            |    5 +-
 ovsdb/log.c             |    8 +
 ovsdb/log.h             |    2 +
 ovsdb/ovsdb-server.1.in |    3 +
 ovsdb/ovsdb-server.c    |   25 +++-
 ovsdb/ovsdb-tool.c      |    4 +-
 tests/ovsdb-server.at   |  117 ++++++++++++++++
 13 files changed, 520 insertions(+), 82 deletions(-)


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list