[ovs-dev] [PATCH 14/14] xenserver: Upgrade and compact database on system boot.

Ben Pfaff blp at nicira.com
Fri Feb 12 11:37:34 PST 2010


This should take care of many of the OVSDB-related upgrade and downgrade
problems reported by Nicira internal testers.

Bug #2388.
---
 xenserver/etc_init.d_vswitch |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/xenserver/etc_init.d_vswitch b/xenserver/etc_init.d_vswitch
index 95c6b80..480f9a9 100755
--- a/xenserver/etc_init.d_vswitch
+++ b/xenserver/etc_init.d_vswitch
@@ -337,6 +337,9 @@ function start {
 
         action "Creating empty database $OVSDB_SERVER_DB" true
         $ovsdb_tool -vANY:console:emer create "$OVSDB_SERVER_DB" "$VSWITCHD_OVSDB_SCHEMA"
+    else
+        # Upgrade or downgrade schema and compact database.
+        $ovsdb_tool -vANY:console:emer convert "$OVSDB_SERVER_DB" "$VSWITCHD_OVSDB_SCHEMA"
     fi
 
     start_ovsdb_server
-- 
1.6.6.1





More information about the dev mailing list