diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-30 12:04:27 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-10-28 22:30:17 +0200 |
commit | 517ce0c15bdf802b3c378fff48b1e5be4167a4fa (patch) | |
tree | feaaf9525aa3e278c2c79259ea388032afa52778 /nix/libstore/sqlite.cc | |
parent | a9afb956b3232ccfb7deaf3feed02b60a12d65bf (diff) | |
download | guix-517ce0c15bdf802b3c378fff48b1e5be4167a4fa.tar guix-517ce0c15bdf802b3c378fff48b1e5be4167a4fa.tar.gz |
daemon: Turn retrying SQLite transactions into a higher-order function.
* nix/libstore/local-store.cc (retry_sqlite, end_retry_sqlite): Remove.
(retrySQLite): New template.
(LocalStore::registerFailedPath, LocalStore::hasPathFailed)
(LocalStore::queryFailedPaths, LocalStore::clearFailedPaths)
(LocalStore::queryPathInfo, LocalStore::isValidPath_)
(LocalStore::queryValidPaths, LocalStore::queryAllValidPaths)
(LocalStore::queryReferrers, LocalStore::queryValidDerivers)
(LocalStore::queryDerivationOutputs)
(LocalStore::queryDerivationOutputNames)
(LocalStore::queryPathFromHashPart, LocalStore::registerValidPaths)
(LocalStore::invalidatePathChecked): Use it.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'nix/libstore/sqlite.cc')
0 files changed, 0 insertions, 0 deletions