if (schemap) {
error = ovsdb_schema_from_json(json, &schema);
if (error) {
- json_destroy(json);
error = ovsdb_wrap_error(error,
"failed to parse \"%s\" as ovsdb schema",
file_name);
oldest_commit = date;
}
- ovsdb_txn_commit(txn, false);
+ ovsdb_error_destroy(ovsdb_txn_commit(txn, false));
}
if (error) {
/* Log error but otherwise ignore it. Probably the database just got
if (!table) {
if (!strcmp(table_name, "_date")
&& node_json->type == JSON_INTEGER) {
- if (date) {
- *date = json_integer(node_json);
- }
+ *date = json_integer(node_json);
continue;
} else if (!strcmp(table_name, "_comment") || converting) {
continue;