diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-10-14 15:33:00 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-10-14 15:33:00 +0000 |
commit | c190f051ac34b2df51402bf593150de97f491d86 (patch) | |
tree | b08f3b05b2f39e1d1c48ce833711516671dc568a /src/nix.cc | |
parent | 1d61e473c88568fae7ef5edebc77acd53e4126f9 (diff) |
* Automatically recover the database in case of a crash.
Diffstat (limited to 'src/nix.cc')
-rw-r--r-- | src/nix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix.cc b/src/nix.cc index 9bbbf4ae8..1012780af 100644 --- a/src/nix.cc +++ b/src/nix.cc @@ -267,8 +267,6 @@ static void opVerify(Strings opFlags, Strings opArgs) list. */ void run(Strings args) { - openDB(); - Strings opFlags, opArgs; Operation op = 0; @@ -315,6 +313,8 @@ void run(Strings args) if (!op) throw UsageError("no operation specified"); + openDB(); + op(opFlags, opArgs); } |