aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/path-info.hh
AgeCommit message (Collapse)Author
2023-04-07Merge remote-tracking branch 'upstream/master' into path-infoJohn Ericson
2023-04-07Finish converting existing comments for internal API docs (#8146)John Ericson
* Finish converting existing comments for internal API docs 99% of this was just reformatting existing comments. Only two exceptions: - Expanded upon `BuildResult::status` compat note - Split up file-level `symbol-table.hh` doc comments to get per-definition docs Also fixed a few whitespace goofs, turning leading tabs to spaces and removing trailing spaces. Picking up from #8133 * Fix two things from comments * Use triple-backtick not indent for `dumpPath` * Convert GNU-style `\`..'` quotes to markdown style in API docs This will render correctly.
2023-03-31Ensure all headers have `#pragma once` and are in API docsJohn Ericson
`///@file` makes them show up in the internal API dos. A tiny few were missing `#pragma once`.
2023-02-28Fix typo in the method nameJohn Ericson
2023-02-01Put back TODOJohn Ericson
I don't think the `narHash` is in need of documentation more than the other undocumented fields, but regardless this change has nothing to do with that field and so we should leave the comment as is.
2023-01-30Delete dead codeJohn Ericson
The references set seems to have been unused since `LegacySSHStore` references were first created in caa5793b4a74049ee37dd88eb1c5b785456ce40d. The method decls never were upstream, and accidentally added by me in 062533f7cdb74026096ca8c7d5b6e393893d59ef (probably due to `git rerere`). Sorry! This reduces the diff from #3746.
2023-01-23Don't add `StorePathDescriptor` for nowJohn Ericson
We don't need it yet, we can add it back later.
2023-01-14Make `ValidPathInfo` have plain `StorePathSet` references like beforeJohn Ericson
This change can wait for another PR.
2023-01-06Do big rename to clean up codeJohn Ericson
- `PathReferences` -> `References` - `PathReferences<StorePath>` -> `StoreReference` - `references` -> `others` - `hasSelfReference` -> `self` And get rid of silly subclassing
2021-09-30Merge remote-tracking branch 'upstream/master' into path-infoJohn Ericson
2021-07-26Low-latency closure copyEelco Dolstra
This adds a new store operation 'addMultipleToStore' that reads a number of NARs and ValidPathInfos from a Source, allowing any number of store paths to be copied in a single call. This is much faster on high-latency links when copying a lot of small files, like .drv closures. For example, on a connection with an 50 ms delay: Before: $ nix copy --to 'unix:///tmp/proxy-socket?root=/tmp/dest-chroot' \ /nix/store/90jjw94xiyg5drj70whm9yll6xjj0ca9-hello-2.10.drv \ --derivation --no-check-sigs real 0m57.868s user 0m0.103s sys 0m0.056s After: real 0m0.690s user 0m0.017s sys 0m0.011s
2021-02-25Merge remote-tracking branch 'upstream/master' into path-infoJohn Ericson
2020-11-03LocalStore: Get rid of recursive_mutexEelco Dolstra
2020-10-07Use PathReferences more widelyJohn Ericson
2020-09-23Merge remote-tracking branch 'upstream/master' into path-infoJohn Ericson
2020-08-06Minimize the usage of `Hash::dummy`John Ericson
2020-08-05Add Hash::dummy to signal default valueCarlo Nucera
We did this in the same spirit of the dummy value that's present in libstore/path.hh
2020-08-05Remove optionality in ValidPathInfo::narInfoCarlo Nucera
2020-08-04Merge remote-tracking branch 'upstream/master' into path-infoJohn Ericson
2020-08-03Merge remote-tracking branch 'upstream/master' into path-info-headerJohn Ericson
2020-08-01Merge remote-tracking branch 'upstream/master' into path-infoJohn Ericson
2020-06-29Backport fix from #3754 branchJohn Ericson
2020-06-25WIP: store separate `hasValidPath` boolJohn Ericson
2020-06-25Pull out PathReferences super classJohn Ericson
2020-06-25Move ValidPathInfo to its own headerJohn Ericson