Checkout
C. Michael Pilato
committed
on 19 Dec 07
Combine two helper functions (one to check that a filesystem is
opened, one to check that it isn't) into a single one that does both
based o… Show more
Combine two helper functions (one to check that a filesystem is

opened, one to check that it isn't) into a single one that does both

based on a boolean expectation flag.

NOTE: This changes the test when 'expect_open' is set to examine

     svn_fs_t->fsap_data instead of svn_fs_t->path (since that's what

     is checked when 'expect_open' is not set, too).  I think that's

     fine, but wanted to note that here anyway just in case it rings

     some alarm in another developer's mind.

* subversion/include/private/svn_fs_util.h,

* subversion/libsvn_fs_util/fs-util.c

 (svn_fs__check_fs): Add 'expect_open' flag.

* subversion/libsvn_fs_base/fs.c

 (check_already_open): Removed as unused.

 (base_bdb_set_errcall): Update call to svn_fs__check_fs().

 (open_databases): Use svn_fs__check_fs() instead of check_already_open().

* subversion/libsvn_fs_fs/fs.c

 (check_already_open): Removed as unused.

 (fs_create): Use svn_fs__check_fs() instead of check_already_open().

* subversion/libsvn_fs_base/tree.c,

* subversion/libsvn_fs_base/bdb/rev-table.c,

* subversion/libsvn_fs_base/uuid.c,

* subversion/libsvn_fs_base/revs-txns.c,

* subversion/libsvn_fs_base/lock.c,

* subversion/libsvn_fs_fs/tree.c,

* subversion/libsvn_fs_fs/fs_fs.c,

* subversion/libsvn_fs_fs/lock.c

 Update call calls to svn_fs__check_fs(), passing TRUE for 'expect_open'.

Show less