mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 04:00:59 +01:00
added scanAndUpdateAllReferencesTxn(..) moving on to create a db-table that can save state-revision-closures and state-revision-reference-closures
This commit is contained in:
parent
1c3ec86c39
commit
ad2b815b5e
10 changed files with 235 additions and 184 deletions
|
|
@ -334,6 +334,7 @@ static void opRunComponent(Strings opFlags, Strings opArgs)
|
|||
|
||||
//TODO
|
||||
//Scan again??
|
||||
//scanAndUpdateAllReferencesRecusively ...
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -384,11 +385,26 @@ void run(Strings args)
|
|||
printMsg(lvlError, format("AA: %1%") % isStatePath("/nix/store/hbxqq4d67j2y21xzp7yp01qjfkcjjbc7-hellohardcodedstateworld-1.0"));
|
||||
printMsg(lvlError, format("AA: %1%") % isStatePath("/nix/state/0qhlpz1ji4gvg3j6nk5vkcddmi3m5x1r-hellohardcodedstateworld-1.0-test2"));
|
||||
|
||||
*/
|
||||
PathSet p1;
|
||||
PathSet p2;
|
||||
PathSet p3;
|
||||
PathSet p4;
|
||||
p1.insert("a");
|
||||
p1.insert("c"); //old
|
||||
p1.insert("b");
|
||||
p2.insert("b");
|
||||
p2.insert("a");
|
||||
p2.insert("cc"); //new
|
||||
p2.insert("x"); //new
|
||||
pathSets_difference(p1,p2,p3,p4);
|
||||
pathSets_union(p1,p2);
|
||||
|
||||
|
||||
|
||||
store = openStore();
|
||||
store->scanForAllReferences("/nix/state/0qhlpz1ji4gvg3j6nk5vkcddmi3m5x1r-hellohardcodedstateworld-1.0-test2");
|
||||
store->scanForAllReferences("/nix/state/i06flm2ahq5s0x3633z30dnav9f1wkb5-hellohardcodedstateworld-dep1-1.0-test");
|
||||
return;
|
||||
*/
|
||||
|
||||
/* test */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue