Fix issue 4727 which is a bug in the fix for issue 4725.
* subversion/libsvn_fs_fs/cached_data.c
(cache_windows): Move auto_read_diff_version() call before the loop.
@@ -3270,6 +3270,9 @@ cache_windows(svn_fs_t *fs,
apr_pool_t *pool)
{
apr_pool_t *iterpool = svn_pool_create(pool);
+
+ auto_read_diff_version(rs, iterpool);
+
while (rs->current < rs->size)
{
apr_off_t end_offset;
@@ -3310,8 +3313,6 @@ cache_windows(svn_fs_t *fs,
apr_size_t window_len;
char *buf;
- auto_read_diff_version(rs, iterpool);
-
/* navigate to the current window */
SVN_ERR(rs_aligned_seek(rs, NULL, start_offset, iterpool));
SVN_ERR(svn_txdelta__read_raw_window_len(&window_len,
