mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 20:20:58 +01:00
the command /nixstate/nix/bin/nix-state --run /nix/store/sig2qgvaayydrwy5hn6b2dm5r2ayhv5s-hellohardcodedstateworld-1.0 now causes state to be checked and comitted
This commit is contained in:
parent
653e557e81
commit
25117fd165
10 changed files with 378 additions and 202 deletions
|
|
@ -1140,7 +1140,12 @@ vector<int> getStatePathsInterval(const PathSet & statePaths)
|
|||
for (PathSet::iterator i = statePaths.begin(); i != statePaths.end(); ++i)
|
||||
{
|
||||
nixDB.queryString(txn, dbStateCounters, *i, data);
|
||||
printMsg(lvlError, format("Data %1%") % data); //TODO
|
||||
|
||||
//TODO check if every key returns a value from the db
|
||||
|
||||
int n;
|
||||
if (!string2Int(data, n)) throw Error("number expected");
|
||||
intervals.push_back(n);
|
||||
|
||||
}
|
||||
txn.commit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue