• Matteo Croce's avatar
    ovs-lib: dont't purge corrupted DB · dbb5ecb4
    Matteo Croce authored
    In ovs-lib there is a function named upgrade_db which tries to convert a
    database after OVS {up,down}grades. This function uses ovsdb-tool to
    check if the DB needs to be upgraded. If the upgrade fails,
    it purges the DB and create an empty one.
    ovsdb-tool returns "yes" or "no" to indicate if the DB needs upgrading,
    but if the DB is corrupted it returns a list of errors.
    Change a condition from "!= no" to "= yes" because in case of DB
    corruption upgrade_db would purge the existing DB without writing
    anything in the logs.
    Signed-off-by: default avatarMatteo Croce <mcroce@redhat.com>
    Signed-off-by: default avatarBen Pfaff <blp@ovn.org>
    Acked-by: default avatarMark Michelson <mmichels@redhat.com>
    dbb5ecb4
Name
Last commit
Last update
.travis Loading commit data...
Documentation Loading commit data...
build-aux Loading commit data...
datapath Loading commit data...
datapath-windows Loading commit data...
debian Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
ofproto Loading commit data...
ovn Loading commit data...
ovsdb Loading commit data...
python Loading commit data...
rhel Loading commit data...
selinux Loading commit data...
tests Loading commit data...
third-party Loading commit data...
tutorial Loading commit data...
utilities Loading commit data...
vswitchd Loading commit data...
vtep Loading commit data...
windows Loading commit data...
xenserver Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
AUTHORS.rst Loading commit data...
CONTRIBUTING.rst Loading commit data...
COPYING Loading commit data...
MAINTAINERS.rst Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
NOTICE Loading commit data...
README.rst Loading commit data...
Vagrantfile Loading commit data...
Vagrantfile-FreeBSD Loading commit data...
acinclude.m4 Loading commit data...
appveyor.yml Loading commit data...
boot.sh Loading commit data...
configure.ac Loading commit data...
manpages.mk Loading commit data...