hmap: Add function to mark an hmap_node as "null" and check for the mark.
[openvswitch] / ovsdb / ovsdb-tool.c
index 8b81ef6153f17ce8bcc7a54dad78d77373b53ed6..61aea75dc57809dc6f44c7eecfe816ec70e20d7a 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "command-line.h"
 #include "compiler.h"
+#include "file.h"
 #include "log.h"
 #include "json.h"
 #include "ovsdb.h"
@@ -167,7 +168,7 @@ transact(bool read_only, const char *db_file_name, const char *transaction)
     struct json *request, *result;
     struct ovsdb *db;
 
-    check_ovsdb_error(ovsdb_open(db_file_name, read_only, &db));
+    check_ovsdb_error(ovsdb_file_open(db_file_name, read_only, &db));
 
     request = parse_json(transaction);
     result = ovsdb_execute(db, request, 0, NULL);