ovsdb: Fix inverted logic in ovsdb_open().
authorBen Pfaff <blp@nicira.com>
Fri, 6 Nov 2009 21:38:00 +0000 (13:38 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 6 Nov 2009 23:33:47 +0000 (15:33 -0800)
commit9f2cfbfef3ce2052198a2323e443e469b18295b8
tree8a2fe99ba5ee00cafc68dba8a6dca5a72250a292
parent1248fcd24a6870460441aadcf2039c86dfea0af6
ovsdb: Fix inverted logic in ovsdb_open().

We want ovsdb_create() (and thus, the open database) to receive the file
only if it is a read-write database.  If it is read-only, then there is
no need to keep the file around, since we will never read or write it
after opening the database.
ovsdb/ovsdb.c