mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 17:59:36 +01:00
* `nix-store --verify --check-contents': don't hold the global GC lock
while checking the contents, since this operation can take a very long time to finish. Also, fill in missing narSize fields in the DB while doing this.
This commit is contained in:
parent
de79d23f76
commit
8062d3af30
2 changed files with 48 additions and 10 deletions
|
|
@ -203,6 +203,7 @@ private:
|
|||
|
||||
/* Some precompiled SQLite statements. */
|
||||
SQLiteStmt stmtRegisterValidPath;
|
||||
SQLiteStmt stmtUpdatePathInfo;
|
||||
SQLiteStmt stmtAddReference;
|
||||
SQLiteStmt stmtQueryPathInfo;
|
||||
SQLiteStmt stmtQueryReferences;
|
||||
|
|
@ -235,6 +236,8 @@ private:
|
|||
void verifyPath(const Path & path, const PathSet & store,
|
||||
PathSet & done, PathSet & validPaths);
|
||||
|
||||
void updatePathInfo(const ValidPathInfo & info);
|
||||
|
||||
void upgradeStore6();
|
||||
PathSet queryValidPathsOld();
|
||||
ValidPathInfo queryPathInfoOld(const Path & path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue