Hi All,
Atlast I understood the need of txn_mergeinfo.
Attaching the patch/log that documents the same.
With regards
Kamesh Jayachandran
[[[
Patch by: Kamesh Jayachandran <kamesh@collab.net>
We cache 'txn_mergeinfo' separately to avoid looping 'paths_changed' of the txn.
* subversion/libsvn_fs_fs/fs_fs.c
(global):
Doc to justify the existence of 'txn_mergeinfo' cache.
]]]
Index: subversion/libsvn_fs_fs/fs_fs.c
===================================================================
--- subversion/libsvn_fs_fs/fs_fs.c (revision 21673)
+++ subversion/libsvn_fs_fs/fs_fs.c (working copy)
@@ -74,6 +74,9 @@
#define PATH_TXN_PROPS "props" /* Transaction properties */
#define PATH_NEXT_IDS "next-ids" /* Next temporary ID assignments */
#define PATH_REV "rev" /* Proto rev file */
+/* We keep a separate mergeinfo hash of
+ * target_path(char*) Vs mergeinfo(svn_string_t*) to avoid looping through
+ * paths_changed hash of the txn to get mergeinfo. */
#define PATH_TXN_MERGEINFO "mergeinfo" /* Transaction mergeinfo props */
#define PATH_PREFIX_NODE "node." /* Prefix for node filename */
#define PATH_EXT_TXN ".txn" /* Extension of txn dir */
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 27 10:32:21 2006