lib/prune: Take exclusive repository lock
authorDan Nicholson <nicholson@endlessm.com>
Fri, 6 Oct 2017 11:04:22 +0000 (11:04 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 5 Dec 2017 02:32:47 +0000 (02:32 +0000)
commitdf7f33e498627c91c6ac21ca1c3ffb1ddd8fa643
treecd6f81c87159231d730e4a07cf4e9ac003d13883
parent6d978893f12f745db529bc1859418e393c6fdc09
lib/prune: Take exclusive repository lock

Add exclusive repository locking to all the pruning entry points. This
ensures that objects and deltas will not be removed while another
process is writing to the repository.

Closes: #1343
Approved by: cgwalters
src/libostree/ostree-repo-prune.c