On the 'svnadmin-upgrade' branch, only allow FSFS upgrading if the
caller holds a write lock on the repository.

### Does this complete the work required for Subversion 1.5? ###

* subversion/libsvn_fs/fs-loader.h
  (fs_library_vtable_t): Add 'common_pool' parameter to 'upgrade_fs' member.

* subversion/libsvn_fs/fs-loader.c
  (svn_fs_upgrade): Update call to FS vtable's upgrade_fs() function.

* subversion/libsvn_fs_fs/fs_fs.h
  (svn_fs_fs__upgrade): Lose 'path' parameter for an 'fs' instead.

* subversion/libsvn_fs_fs/fs_fs.c
  (upgrade_body): New; now holds all the real upgrade-y stuff that
    used to live in svn_fs_fs__upgrade.
  (svn_fs_fs__upgrade): Lose 'path' parameter for an 'fs' instead.
    Now just a thin wrapper around a call to the svn_fs_fs__with_write_lock()
    function and, ultimately, upgrade_body().

* subversion/libsvn_fs_fs/fs.c
  (fs_upgrade): New function.
  (library_vtable): Plug 'fs_upgrade' in for the 'upgrade_fs' vtable
    entry (instead of svn_fs_fs__upgrade().

* subversion/libsvn_fs_base/fs.c
  (base_upgrade): Add 'fs' and 'common_pool' parameters (ignored).

Suggested by: glasser

git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/svnadmin-upgrade@869187 13f79535-47bb-0310-9956-ffa450edef68
6 files changed