Re: Validation code.

From: Duane Wessels <wessels@dont-contact.us>
Date: Thu, 30 Nov 2000 16:05:53 -0700 (MST)

On Sun, 26 Nov 2000, Robert Collins wrote:

> I think there is a race in storeCleanup.
>
> I found a race between writing a swapfile and checking the files size while
> doing the basic bits of the background checker. I think the same race could
> occur in StoreCleanup.
>
> the Cleanup code iterations through the swap dirs, through each storeentry.
> However new storeentries are able to be written as soon as the Log/Directory
> have been parsed into memory.
>
> so the cleanup code could that calls doublecheck could call it on a new file
> being written, thus causes a problem.

Wait a minute.

The being-written entry should have ENTRY_VALIDATED set, right?

storeCleanup() skips entries with ENTRY_VALIDATED set.

Duane W.
Received on Thu Nov 30 2000 - 16:05:54 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:01 MST