subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@apache.org
Subject svn commit: r1584706 - in /subversion/trunk/subversion: libsvn_fs_fs/lock.c libsvn_fs_x/lock.c
Date Fri, 04 Apr 2014 14:16:57 GMT
Author: philip
Date: Fri Apr  4 14:16:56 2014
New Revision: 1584706

URL: http://svn.apache.org/r1584706
Log:
Add comments, no functional change.

* subversion/libsvn_fs_fs/lock.c
* subversion/libsvn_fs_x/lock.c
  (struct unlock_baton, unlock_single): Add comments.

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/lock.c
    subversion/trunk/subversion/libsvn_fs_x/lock.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/lock.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/lock.c?rev=1584706&r1=1584705&r2=1584706&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/lock.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/lock.c Fri Apr  4 14:16:56 2014
@@ -997,6 +997,7 @@ struct unlock_baton {
   svn_fs_t *fs;
   apr_array_header_t *targets;
   apr_array_header_t *infos;
+  /* Set skip_check TRUE to prevent the checks that set infos[].fs_err. */
   svn_boolean_t skip_check;
   svn_boolean_t break_lock;
   apr_pool_t *result_pool;
@@ -1170,6 +1171,8 @@ unlock_single(svn_fs_t *fs,
   svn_sort__item_t item;
   apr_array_header_t *targets = apr_array_make(pool, 1,
                                                sizeof(svn_sort__item_t));
+  svn_error_t *err;
+
   item.key = lock->path;
   item.klen = strlen(item.key);
   item.value = (char*)lock->token;
@@ -1180,6 +1183,7 @@ unlock_single(svn_fs_t *fs,
   ub.skip_check = TRUE;
   ub.result_pool = pool;
 
+  /* No ub.infos[].fs_err error because skip_check is TRUE. */
   SVN_ERR(unlock_body(&ub, pool));
 
   return SVN_NO_ERROR;

Modified: subversion/trunk/subversion/libsvn_fs_x/lock.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/lock.c?rev=1584706&r1=1584705&r2=1584706&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/lock.c (original)
+++ subversion/trunk/subversion/libsvn_fs_x/lock.c Fri Apr  4 14:16:56 2014
@@ -997,6 +997,7 @@ struct unlock_baton {
   svn_fs_t *fs;
   apr_array_header_t *targets;
   apr_array_header_t *infos;
+  /* Set skip_check TRUE to prevent the checks that set infos[].fs_err. */
   svn_boolean_t skip_check;
   svn_boolean_t break_lock;
   apr_pool_t *result_pool;
@@ -1170,6 +1171,8 @@ unlock_single(svn_fs_t *fs,
   svn_sort__item_t item;
   apr_array_header_t *targets = apr_array_make(pool, 1,
                                                sizeof(svn_sort__item_t));
+  svn_error_t *err;
+
   item.key = lock->path;
   item.klen = strlen(item.key);
   item.value = (char*)lock->token;
@@ -1180,6 +1183,7 @@ unlock_single(svn_fs_t *fs,
   ub.skip_check = TRUE;
   ub.result_pool = pool;
 
+  /* No ub.infos[].fs_err error because skip_check is TRUE. */
   SVN_ERR(unlock_body(&ub, pool));
 
   return SVN_NO_ERROR;



Mime
View raw message