/[Apache-SVN]
ViewVC logotype

Revision 1838813


Jump to revision: Previous Next
Author: julianfoad
Date: Fri Aug 24 10:48:37 2018 UTC (5 years, 8 months ago)
Changed paths: 2
Log Message:
Let 'svnadmin recover' prune the rep-cache even if it is disabled.

Part of issue #4077: "FSFS recover should prune unborn revisions from
rep-cache.db".

Also add tests for both cases (enabled, disabled).

Pruning the rep-cache even if disabled was included as r1213716 in the
original fix for issue #4077, first released in Subversion 1.7.3, but was
reverted in r1367674 (issue #4214, recovery should not create rep-cache.db)
and so omitted from Subversion 1.8 and later series of releases.

* subversion/libsvn_fs_fs/recovery.c
  (recover_body): Prune the rep-cache no matter whether it's in use.

* subversion/tests/cmdline/svnadmin_tests.py
  (read_rep_cache,
   check_recover_prunes_rep_cache): New functions.
  (recover_prunes_rep_cache_when_enabled,
   recover_prunes_rep_cache_when_disabled): New tests.
  (test_list): Run them.


Changed paths

Path Details
Directorysubversion/trunk/subversion/libsvn_fs_fs/recovery.c modified , text changed
Directorysubversion/trunk/subversion/tests/cmdline/svnadmin_tests.py modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26