You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2011/07/07 23:11:55 UTC
svn commit: r1144039 -
/subversion/branches/revprop-packing/subversion/libsvn_fs_fs/fs_fs.c
Author: hwright
Date: Thu Jul 7 21:11:54 2011
New Revision: 1144039
URL: http://svn.apache.org/viewvc?rev=1144039&view=rev
Log:
On the revprop-packing branch:
Swap out some comments.
* subversion/libsvn_fs_fs/fs_fs.c
(set_revision_proplist): In the packed case, swap out the old code, for what
I think is the right algorithm for replacing revprops.
Modified:
subversion/branches/revprop-packing/subversion/libsvn_fs_fs/fs_fs.c
Modified: subversion/branches/revprop-packing/subversion/libsvn_fs_fs/fs_fs.c
URL: http://svn.apache.org/viewvc/subversion/branches/revprop-packing/subversion/libsvn_fs_fs/fs_fs.c?rev=1144039&r1=1144038&r2=1144039&view=diff
==============================================================================
--- subversion/branches/revprop-packing/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/branches/revprop-packing/subversion/libsvn_fs_fs/fs_fs.c Thu Jul 7 21:11:54 2011
@@ -3034,15 +3034,17 @@ set_revision_proplist(svn_fs_t *fs,
}
else
{
- /*svn_sqlite__stmt_t *stmt;
+ /* Here's how this works:
+ - Open a new pack file and manifest file
+ - We copy all the existing revprops, upto the one being edited
+ - Copy the new prop content into the the target file
+ - Copy the remaining revprops into the target file
+ - Append the pack file to the manifest file (just like we do when
+ packing).
+ - Move the new packed file into place. */
- SVN_ERR(svn_sqlite__get_statement(&stmt, ffd->revprop_db,
- STMT_SET_REVPROP));
-
- SVN_ERR(svn_sqlite__bind_int64(stmt, 1, rev));
- SVN_ERR(svn_sqlite__bind_properties(stmt, 2, proplist, pool));
-
- SVN_ERR(svn_sqlite__insert(NULL, stmt));*/
+ /* ### We need some locking here, so that folks editing props in the
+ ### same shard don't clobber each other. */
}
return SVN_NO_ERROR;