Comment 8 for bug 507557

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 507557] Re: Overlapping autopacks can fail with NoSuchFile when obsoleting packs

On Tue, 2010-01-19 at 21:04 +0000, John A Meinel wrote:
>
> Once pack-names has been written, those files are no longer
> referenced,
> so we can rename them from 'packs' to 'obsolete_packs' at our leisure
> (we don't need the lock).
>
> We probably don't need the lock when deleting content from
> obsolete_packs either, as it doesn't effect the correctness of the
> operation.

We need it when deleting content so that two processes don't try to
delete the same file at the same time.

-Rob