X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Fovsdb.c;h=6d0f131ea451ff70ba272dc2de9e5339f9581032;hb=031472d9e29c00fe470335ad6fc136fd9a9ae075;hp=1a4b6d8dad785682da340d0e3a8eab818d2142a2;hpb=1248fcd24a6870460441aadcf2039c86dfea0af6;p=openvswitch diff --git a/ovsdb/ovsdb.c b/ovsdb/ovsdb.c index 1a4b6d8d..6d0f131e 100644 --- a/ovsdb/ovsdb.c +++ b/ovsdb/ovsdb.c @@ -204,7 +204,7 @@ ovsdb_open(const char *file_name, bool read_only, struct ovsdb **dbp) } json_destroy(json); - db = ovsdb_create(read_only ? file : NULL, schema); + db = ovsdb_create(read_only ? NULL : file, schema); while ((error = ovsdb_file_read(file, &json)) == NULL && json) { struct ovsdb_txn *txn;