[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: fsfs rep on Win98SE lock file problem

From: John J Smith <johnjsmith_at_rediffmail.com>
Date: 2004-10-24 13:39:01 CEST

Thanks for the reply. Comments below. On Sun, 24 Oct 2004 Greg Hudson wrote : >On Sat, 2004-10-23 at 16:15, John J Smith wrote: > > Analysis of the TortoiseSVN equivalent of the > > above using a system call tracer seemed to > > indicate that the db.lock file was being > > opened, LockFile()d, opened again, and > > LockFile()d again without releasing the first > > lock. > > > > Is it a bug or a problem with my system? > >Well, the kind of lock we're getting on that file >is a shared lock, so it should be okay to get it >twice. So, I'll go with "a problem with I'm not sure what you mean by a `shared lock'. Quoting from the online MSDN documentation for LockFile(): Locking a region of a file gives the threads of the locking process exclusive access to the specified region using this file handle. ... If the locking process opens the file a second time, it cannot access the specified region through this second handle until it unlocks the region. A standalone program (compiled with Mingw) that does open-lock-open-lock with the same parameters also fails in the second lock. >your system." (Though perhaps with win98 in >general, and not just with your system in >particular. Do other people have experience with >trying FSFS under win98?) I guess if the problem is with Win98 in general, then the documentation/FAQ should say so. The only thing that makes me unsure about this being a bug is that no one else has posted about this. Can anyone confirm successful local fsfs repository access in Win98 (or Win98SE)? >In the long run, I'd like FSFS to work even on >systems which aren't 100% correct, which means >not grabbing the recovery read lock. That lock >isn't really necessary for FSFS repositories >anyway, at least as long as recovery isn't doing >anything. This would definitely be nice. >I don't know if I can promise a fix in 1.1.2, but >maybe. (If you are in a position to build the >svn code yourself, I could supply a patch which >would break BDB functionality--not a loss on >win98--but eliminate your locking problem.) I can build the code only if it can be done under Cygwin/Mingw (which I tried but didn't succeed). Thanks, jjs
Received on Mon Oct 25 03:14:50 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.