• 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
..
bugtool Loading commit data...
.gitignore Loading commit data...
automake.mk Loading commit data...
checkpatch.py Loading commit data...
nlmon.c Loading commit data...
ovs-appctl-bashcomp.bash Loading commit data...
ovs-appctl.8.in Loading commit data...
ovs-appctl.c Loading commit data...
ovs-check-dead-ifs.in Loading commit data...
ovs-ctl.8 Loading commit data...
ovs-ctl.in Loading commit data...
ovs-dev.py Loading commit data...
ovs-docker Loading commit data...
ovs-dpctl-top.8.in Loading commit data...
ovs-dpctl-top.in Loading commit data...
ovs-dpctl.8.in Loading commit data...
ovs-dpctl.c Loading commit data...
ovs-l3ping.8.in Loading commit data...
ovs-l3ping.in Loading commit data...
ovs-lib.in Loading commit data...
ovs-ofctl.8.in Loading commit data...
ovs-ofctl.c Loading commit data...
ovs-parse-backtrace.8 Loading commit data...
ovs-parse-backtrace.in Loading commit data...
ovs-pcap.1.in Loading commit data...
ovs-pcap.in Loading commit data...
ovs-pipegen.py Loading commit data...
ovs-pki.8.in Loading commit data...
ovs-pki.in Loading commit data...
ovs-save Loading commit data...
ovs-sim.1.xml Loading commit data...
ovs-sim.in Loading commit data...
ovs-tcpdump.8.in Loading commit data...
ovs-tcpdump.in Loading commit data...
ovs-tcpundump.1.in Loading commit data...
ovs-tcpundump.in Loading commit data...
ovs-test.in Loading commit data...
ovs-testcontroller.8.in Loading commit data...
ovs-testcontroller.c Loading commit data...
ovs-vlan-bug-workaround.8.in Loading commit data...
ovs-vlan-bug-workaround.c Loading commit data...
ovs-vlan-bugs.man Loading commit data...
ovs-vlan-test.in Loading commit data...
ovs-vsctl-bashcomp.bash Loading commit data...
ovs-vsctl.8.in Loading commit data...
ovs-vsctl.c Loading commit data...