Skip to content
Snippets Groups Projects
  • Caleb Ristvedt's avatar
    a4678c6b
    database: Make 'register-items' transactional. · a4678c6b
    Caleb Ristvedt authored
    
    * 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: default avatarLudovic Courtès <ludo@gnu.org>
    a4678c6b
    History
    database: Make 'register-items' transactional.
    Caleb Ristvedt authored
    
    * 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: default avatarLudovic Courtès <ludo@gnu.org>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.