Skip to content

Commit

Permalink
ovsqlite-util: Fix the use of -F
Browse files Browse the repository at this point in the history
Constraints on foreign keys were re-enabled too early.
  • Loading branch information
Julien-Elie committed May 18, 2024
1 parent 1d718c2 commit 0ff2d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/ovsqlite/ovsqlite-util.in
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,13 @@ insert into repairs
or count_was_bad;
}
);
pragma_foreign_keys(1);

$statement = $dbh->prepare("select count(*) from repairs;");
($result) = $dbh->selectrow_array($statement);

if ($result > 0) {
printf STDERR (
"%d groupinfo record%s incoherent\n", $result,
"%d groupinfo record%s incoherent (Low, High, Count)\n", $result,
($result > 1) ? "s" : "",
);

Expand Down Expand Up @@ -407,6 +406,7 @@ insert or replace into groupinfo
}

}
pragma_foreign_keys(1);
}

# Dump overview information (-g option).
Expand Down

0 comments on commit 0ff2d3a

Please sign in to comment.