subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r1637363 - /subversion/trunk/subversion/libsvn_fs_fs/transaction.c
Date Fri, 07 Nov 2014 12:34:42 GMT
Author: ivan
Date: Fri Nov  7 12:34:42 2014
New Revision: 1637363

URL: http://svn.apache.org/r1637363
Log:
* subversion/libsvn_fs_fs/transaction.c
  (commit_body): Invert if/else statement to avoid negative condition.

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/transaction.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/transaction.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/transaction.c?rev=1637363&r1=1637362&r2=1637363&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/transaction.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/transaction.c Fri Nov  7 12:34:42 2014
@@ -3461,7 +3461,15 @@ commit_body(void *baton, apr_pool_t *poo
                                         cb->fs, txn_id, changed_paths,
                                         new_rev, pool));
 
-  if (!svn_fs_fs__use_log_addressing(cb->fs))
+  if (svn_fs_fs__use_log_addressing(cb->fs))
+    {
+      /* Append the index data to the rev file. */
+      SVN_ERR(svn_fs_fs__add_index_data(cb->fs, proto_file,
+                      svn_fs_fs__path_l2p_proto_index(cb->fs, txn_id, pool),
+                      svn_fs_fs__path_p2l_proto_index(cb->fs, txn_id, pool),
+                      new_rev, pool));
+    }
+  else
     {
       /* Write the final line. */
 
@@ -3473,15 +3481,6 @@ commit_body(void *baton, apr_pool_t *poo
       SVN_ERR(svn_io_file_write_full(proto_file, trailer->data, trailer->len,
                                      NULL, pool));
     }
-  else
-    {
-      /* Append the index data to the rev file. */
-      SVN_ERR(svn_fs_fs__add_index_data(cb->fs, proto_file,
-                      svn_fs_fs__path_l2p_proto_index(cb->fs, txn_id, pool),
-                      svn_fs_fs__path_p2l_proto_index(cb->fs, txn_id, pool),
-                      new_rev, pool));
-    }
-
 
   SVN_ERR(svn_io_file_flush_to_disk(proto_file, pool));
   SVN_ERR(svn_io_file_close(proto_file, pool));



Mime
View raw message