Project

General

Profile

Feature Request #2021

Transactions would be really cool

lukeshu - about 1 year ago - . Updated about 1 year ago.

Status:
open
Priority:
bug
Assignee:
-
% Done:

0%


Description

db-import-pkg calls db-move, then db-update (then db-remove). If db-update fails, it would be nice if it rolled back the db-move.

I'm thinking about implementing this via btrfs snapshots. That would require locking all of the repos, rather than just the ones you're working with. I don't think that would be too much of an issue; there isn't a ton of concurrency going on.

History

#1

Updated by lukeshu about 1 year ago

Would having /srv/repo/main be a symlink that changes confuse unionfs? IDK. That's a question we'd need to answer if we go the btrfs route.

Also available in: Atom PDF