Re: mod_dav_svn and multiple apache processes

"C. Michael Pilato" <[email protected]> Wed, 02 Dec 2009 10:01:49 -0500
Newsgroups gmane.comp.version-control.subversion.devel,gmane.comp.version-control.subversion.rapidsvn.devel
Organization CollabNet, Inc.
Message-ID <[email protected]>
Viacheslav Zholudev wrote:
> thanks for the answer. It sufficiently clarifies things for me. However,
> I have one more question: Let's assume that SVN client commits two big
> files in the same SVN transaction. Could it happen that mod_dav_svn
> writes pieces of those two big files to the "strings" simultaneously?
> I.e. part1_file1, part1_file2, part2_file1, part2_file2 or in some other
> mixed order?

Today's Subversion clients won't do that.  They serialize the transmission
of file contents towards the server.  But putting that aside, the BDB code
keeps one file's contents in the 'strings' table separate from another's by
assigning the contents to different database keys.  So while a single client
may not write to two different files in the same transaction, it's certainly
the case that multiple clients could be tossing file contents for multiple
files into the 'strings' table simultaneous.  The code does the right thing
though -- it's not like you're going to get corruption or anything that
appears like a file has interleaved content from various sources.

What's the source of your interest?  Are you seeing a problem?

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2426365

Please start new threads on the <[email protected]> mailing list.
To subscribe to the new list, send an empty e-mail to <[email protected]>.
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAksWgV0ACgkQokEGqRcG/W7iyQCgiN4e6Ewl1eTKbPYBWojIoonz
TJoAn2x9/Md/SBYvjL/9FjfSiQCbslRM
=Ir8f
-----END PGP SIGNATURE-----