Re: [patch] Cache / File container
| From: | Christian Stocker | Date: | Thu, 30 May 2002 14:41:59 +0000 |
| Subject: | Re: [patch] Cache / File container | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6663@lists.php.net to get a copy of this message | ||
Hi
> File container in PEAR_Cache don't have locking system. So, it's possible,
> that you get corrupted data-entries under bad circumstances.
>
> I have run tests with two scripts running in the same moment (one writing,
> the second one reading). And it's true that you can get corrupted results
> when fetching the cache.
>
> So I have made a patch to implement locking in the file container.
>
> Patch is attached. Can I commit it ?
not sure, if this is 100% bulletproof, but better than nothing, i assume
:)
what about deleting? this is not locked right now, right?
chregu
--
nam...christian stocker adr...bremgartnerstr. 66, ch-8003 zurich
pho...+41 1 451 6021 www...http://phant.ch/chregu
mob...+41 76 561 8860 ema...chregu@phant.ch
wor...+41 1 240 5670 gpg...0x5CE1DECB