[ovs-git] Open vSwitch: Avoid unneeded database compaction at startup, and improve backups. (master)

dev at openvswitch.org dev at openvswitch.org
Tue Feb 15 20:25:57 UTC 2011


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  f8186f2c8111c171a26ffded62affb1ac1837e88 (commit)
       via  403e3a25f89ba9f2efb9a8c43e4e585f4af2ac67 (commit)
       via  6aa09313722406629133b375871547fb426800ef (commit)
       via  e1ebc8cea2991e19456cb9fce54ac8167f6dbf4c (commit)
       via  ae9a3235bfa607fdcccd5e12d2052252e67fb914 (commit)
      from  4951ece66d368a97d740eb1a4cedd1dc84e3e7a1 (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 f8186f2c8111c171a26ffded62affb1ac1837e88
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=f8186f2c8111c171a26ffded62affb1ac1837e88
Author: Ben Pfaff <blp at nicira.com>
		
Avoid unneeded database compaction at startup, and improve backups.
		
Until now, Open vSwitch "start" has always converted the database to the
current database schema.  This compacts the database, which as a side
effect throws away useful information about the transactions that were
executed to bring the database into its current state.  This can make
debugging database-related problems more difficult.

This commit changes the "start" command to only convert the database if
the database schema has changed.  It also adds the database checksum to
the backup file name, to avoid overwriting backups in the case where the
checksum changed but the developer neglected to update the version number.

I tested an earlier version of the xenserver changes but not any version
of the Debian changes.


commit 403e3a25f89ba9f2efb9a8c43e4e585f4af2ac67
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=403e3a25f89ba9f2efb9a8c43e4e585f4af2ac67
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb-tool: New command "needs-conversion".
		


commit 6aa09313722406629133b375871547fb426800ef
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=6aa09313722406629133b375871547fb426800ef
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb-tool: Add commands for printing the database checksum.
		


commit e1ebc8cea2991e19456cb9fce54ac8167f6dbf4c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=e1ebc8cea2991e19456cb9fce54ac8167f6dbf4c
Author: Ben Pfaff <blp at nicira.com>
		
ovsdb: New function ovsdb_file_read_schema() for reading schema from db.
		
This new function saves reading the whole database when only the schema is
of interest.  This commit adapts ovsdb-tool to use it for the "db-version"
command.  Upcoming commits will introduce another caller.


commit ae9a3235bfa607fdcccd5e12d2052252e67fb914
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=ae9a3235bfa607fdcccd5e12d2052252e67fb914
Author: Ben Pfaff <blp at nicira.com>
		
ovs-vsctl: Improve documentation and --help output.
		


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

Summary of changes:
 debian/openvswitch-switch.init   |   11 ++---
 ovsdb/SPECS                      |    4 ++
 ovsdb/file.c                     |   86 +++++++++++++++++++++++++++++---------
 ovsdb/file.h                     |    6 ++-
 ovsdb/ovsdb-tool.1.in            |   38 +++++++++++-----
 ovsdb/ovsdb-tool.c               |   51 ++++++++++++++++++++--
 ovsdb/ovsdb.c                    |   35 +++++++++++++---
 ovsdb/ovsdb.h                    |    9 +++-
 tests/ovsdb-execution.at         |    3 +-
 tests/ovsdb-server.at            |    2 +-
 tests/ovsdb-tool.at              |   42 ++++++++++++++++++-
 utilities/ovs-vsctl.8.in         |    8 ++--
 utilities/ovs-vsctl.c            |   14 +++++-
 xenserver/etc_init.d_openvswitch |   13 ++----
 14 files changed, 253 insertions(+), 69 deletions(-)


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list