Author: stefan2
Date: Mon Aug 25 00:02:15 2014
New Revision: 1620243

URL: http://svn.apache.org/r1620243
Log:
On the revprop-caching-ng branch: 

* subversion/libsvn_fs_fs/revprops.c
  (revprop_generation_fixup): If a reader process is to discover crashed
                              writer, make sure we recover based on the
                              latest data.

Modified:
    subversion/branches/revprop-caching-ng/subversion/libsvn_fs_fs/revprops.c

Modified: 
subversion/branches/revprop-caching-ng/subversion/libsvn_fs_fs/revprops.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/revprop-caching-ng/subversion/libsvn_fs_fs/revprops.c?rev=1620243&r1=1620242&r2=1620243&view=diff
==============================================================================
--- subversion/branches/revprop-caching-ng/subversion/libsvn_fs_fs/revprops.c 
(original)
+++ subversion/branches/revprop-caching-ng/subversion/libsvn_fs_fs/revprops.c 
Mon Aug 25 00:02:15 2014
@@ -485,6 +485,9 @@ revprop_generation_fixup(void *void_bato
   fs_fs_data_t *ffd = baton->fs->fsap_data;
   assert(ffd->has_write_lock);
 
+  /* Make sure we don't operate on stale OS buffers. */
+  SVN_ERR(close_revprop_generation_file(baton->fs, scratch_pool));
+
   /* Maybe, either the original revprop writer or some other reader has
      already corrected / bumped the revprop generation.  Thus, we need
      to read it again.  However, we will now be the only ones changing


Reply via email to