Dmitry Konyshev <dmitry.konyshev@gmail.com>


Found
r867330

r867330 | glasser | 2007-10-17 19:22:37 +0000 (Wed, 17 Oct 2007)

Don't retrieve the contents of *mutable* directories from the dir
cache, because they might have been changed by another FS object.
(To make this change as minimal as possible, we still do save them
into the cache; we just don't retrieve them.)

This fixed a user-reported error where some changes made by a
pre-commit txn don't "stick", because the cache of the root node
contents in the server process doesn't get invalidated when the hook
makes changes.  (It's the root node because the cache only stores one
directory per "rev", and that's the last one cached in "rev" -1.)  One
can imagine other circumstances where this would be problematic as
well.

* subversion/libsvn_fs_fs/fs_fs.c
  (svn_fs_fs__rep_contents_dir): Don't look in the cache for mutable
   directory contents.

Reported by: Dmitry Konyshev <dmitry.konyshev@gmail.com>