mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 23:42:43 +01:00
Prefer RepairFlag over bool when applicable
This commit is contained in:
parent
e9a4abdb5d
commit
9f9f39a24b
3 changed files with 6 additions and 6 deletions
|
|
@ -174,7 +174,7 @@ public:
|
|||
|
||||
/* Optimise a single store path. Optionally, test the encountered
|
||||
symlinks for corruption. */
|
||||
void optimisePath(const Path & path, bool repair);
|
||||
void optimisePath(const Path & path, RepairFlag repair);
|
||||
|
||||
bool verifyStore(bool checkContents, RepairFlag repair) override;
|
||||
|
||||
|
|
@ -254,7 +254,7 @@ private:
|
|||
|
||||
InodeHash loadInodeHash();
|
||||
Strings readDirectoryIgnoringInodes(const Path & path, const InodeHash & inodeHash);
|
||||
void optimisePath_(Activity * act, OptimiseStats & stats, const Path & path, InodeHash & inodeHash, bool repair);
|
||||
void optimisePath_(Activity * act, OptimiseStats & stats, const Path & path, InodeHash & inodeHash, RepairFlag repair);
|
||||
|
||||
// Internal versions that are not wrapped in retry_sqlite.
|
||||
bool isValidPath_(State & state, const StorePath & path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue