Obtain a shared lock on the repository *before* opening it, rather than *afterwards*.   This should prevent a potential race-condition that may or may not have been the root cause of some repository corruptions.
Obtain a shared lock on the repository *before* opening it, rather than
*afterwards*.   This should prevent a potential race-condition that may
or may not have been the root cause of some repository corruptions.

* subversion/libsvn_repos/repos.c
  (get_repos): move call to svn_fs_open_berkeley to after lock acquisition.

jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion