[Metakit] Corrupted database over network - WinNT

phil bennett phil.bennett at wavefrontsystems.com
Tue Feb 13 15:50:16 CET 2007


Pat,

I'm running a far less ambitious but similarly configured ( Windows network
) shared database and, despite arbitrating access, have experienced some of
the trouble you and Hector are talking about. I would be very grateful if
you would send me a copy of the c4_FileStrategy scheme that you have
implemented - it certainly sounds like you've cracked the problem.

Regards,
Phil Bennett

-----Original Message-----
From: metakit-bounces at equi4.com [mailto:metakit-bounces at equi4.com] On Behalf
Of Pat Thoyts
Sent: 13 February 2007 15:28
To: Hector at coollector.com
Cc: metakit at equi4.com
Subject: Re: [Metakit] Corrupted database over network - WinNT

<Hector at coollector.com> writes:

>> As I mentioned in an earlier post -- the solution is to ensure that
>> metakit files on network shares are opened for exclusive access. You
>> can write your own c4_FileStrategy implementation to handle this and
>> use it in the c4_Storage constructor. The PathIsNetworkPath Win32 API
>> is also a useful function here.
>
>No, you can't prevent an antivirus from scanning your file. Just
>looking at the file attributes is enough to corrupt it (if it's
>followed by another commit). At least, it is what I observe with my
>program. If you too have an application that can commit to a metakit
>file through a network, please make the test and tell me if you
>observe the same corruption. Maybe it's my program's fault, but
>sincerely I doubt it.

I can't post you the whole lot but I can give you the re-implementation
of c4_FileStrategy that we use. We have some 32GB of data in over
18000 files on a Windows network shared storage and none of them are
corrupt and people do use them over the network share.

-- 
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD

_____________________________________________
Metakit mailing list  -  Metakit at equi4.com
http://www.equi4.com/mailman/listinfo/metakit

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 12/02/2007
13:23
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 12/02/2007
13:23
 



More information about the Metakit mailing list