guix-devel/guix
Caleb Ristvedt a4678c6ba1
database: Make 'register-items' transactional.
* guix/store/database.scm (SQLITE_BUSY, register-output-sql): New variables.
(add-references): Don't try finalizing after each use, only after all the
uses (otherwise a finalized statement would be used if #:cache? was #f).
(call-with-transaction): New procedure.
(register-items): Use call-with-transaction to prevent broken intermediate
states from being visible.

* .dir-locals.el (call-with-transaction): indent it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2019-03-07 00:00:18 +01:00
..
build gnu: rust: Factor out "cargo-utils" from "cargo-build-system". 2019-03-01 08:20:50 +01:00
build-system gnu: rust: Factor out "cargo-utils" from "cargo-build-system". 2019-03-01 08:20:50 +01:00
import import: opam: Work around janestreet version numbers. 2019-02-05 22:33:13 +01:00
scripts environment: Rename '--inherit' to '--preserve'. 2019-03-04 15:22:59 +01:00
store database: Make 'register-items' transactional. 2019-03-07 00:00:18 +01:00
tests
base16.scm
base32.scm
base64.scm
build-system.scm
cache.scm
channels.scm channels: Do not offload package cache derivation. 2019-01-29 12:09:52 +01:00
ci.scm
combinators.scm
config.scm.in daemon: Rename 'NIX_STATE_DIR' and 'NIX_DB_DIR' environment variables. 2019-02-04 00:03:30 +01:00
cpio.scm
cve.scm
cvs-download.scm
deprecation.scm
derivations.scm
describe.scm
discovery.scm
docker.scm
download.scm
elf.scm
ftp-client.scm
gexp.scm monads, gexp: Prevent redefinition of syntax parameters. 2019-02-06 23:06:18 +01:00
git-download.scm
git.scm git: Add an exception printer for 'git-error'. 2019-02-11 23:23:28 +01:00
glob.scm
gnu-maintenance.scm gnu-maintenance: Verify GPG signatures in KDE updater. 2019-02-15 12:12:09 +01:00
gnupg.scm
grafts.scm
graph.scm
hg-download.scm
http-client.scm
i18n.scm
inferior.scm inferior: Add 'inferior-available-packages'. 2019-02-12 23:30:16 +01:00
licenses.scm licenses: Add lppl1.1+. 2019-01-24 13:46:39 +01:00
man-db.scm
memoization.scm
modules.scm
monad-repl.scm
monads.scm monads, gexp: Prevent redefinition of syntax parameters. 2019-02-06 23:06:18 +01:00
nar.scm
packages.scm packages: 'package-input-rewriting' can take a promise. 2019-01-28 15:45:48 +01:00
pki.scm
profiles.scm profiles: Raise an error for unmatched patterns. 2019-02-07 15:46:45 +01:00
profiling.scm
progress.scm
records.scm
scripts.scm
search-paths.scm search-paths: Add 'set-search-paths'. 2018-05-10 14:53:57 +02:00
self.scm self: Generated (guix config) honors %CURRENT-SYSTEM. 2019-02-17 00:04:57 +01:00
serialization.scm
sets.scm
ssh.scm
status.scm status: Erase the current line upon new builds or downloads. 2019-02-11 23:23:27 +01:00
store.scm store: 'log-file' honors 'GUIX_LOG_DIRECTORY'. 2019-02-04 00:03:30 +01:00
svn-download.scm
swh.scm
tests.scm
ui.scm ui: Always print the exception upon load errors. 2019-02-11 23:23:28 +01:00
upstream.scm
utils.scm
workers.scm
zlib.scm