subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r1703183 - in /subversion/trunk/subversion/tests: libsvn_fs_fs/fs-fs-pack-test.c libsvn_fs_x/fs-x-pack-test.c libsvn_repos/repos-test.c
Date Tue, 15 Sep 2015 12:57:59 GMT
Author: ivan
Date: Tue Sep 15 12:57:59 2015
New Revision: 1703183

URL: http://svn.apache.org/r1703183
Log:
Do not perform flush to disk when it's completely unnecessary.

* subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c
* subversion/tests/libsvn_fs_x/fs-x-pack-test.c
* subversion/tests/libsvn_repos/repos-test.c
  (plain_0_length, write_format, test_config_pool): Call
   svn_io_atomic_write2() with FLUSH_TO_DISK=FALSE.

Modified:
    subversion/trunk/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c
    subversion/trunk/subversion/tests/libsvn_fs_x/fs-x-pack-test.c
    subversion/trunk/subversion/tests/libsvn_repos/repos-test.c

Modified: subversion/trunk/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c?rev=1703183&r1=1703182&r2=1703183&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c Tue Sep 15 12:57:59 2015
@@ -1344,7 +1344,7 @@ plain_0_length(const svn_test_opts_t *op
     }
 
   SVN_ERR(svn_io_write_atomic2(rev_path, rev_contents->data,
-                               rev_contents->len, NULL, TRUE,
+                               rev_contents->len, NULL, FALSE,
                                pool));
 
   if (svn_fs_fs__use_log_addressing(fs))

Modified: subversion/trunk/subversion/tests/libsvn_fs_x/fs-x-pack-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_fs_x/fs-x-pack-test.c?rev=1703183&r1=1703182&r2=1703183&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_fs_x/fs-x-pack-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_fs_x/fs-x-pack-test.c Tue Sep 15 12:57:59 2015
@@ -62,7 +62,7 @@ write_format(const char *path,
                           format, max_files_per_dir);
 
   SVN_ERR(svn_io_write_atomic2(path, contents, strlen(contents),
-                               NULL /* copy perms */, TRUE, pool));
+                               NULL /* copy perms */, FALSE, pool));
 
   /* And set the perms to make it read only */
   return svn_io_set_file_read_only(path, FALSE, pool);

Modified: subversion/trunk/subversion/tests/libsvn_repos/repos-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_repos/repos-test.c?rev=1703183&r1=1703182&r2=1703183&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_repos/repos-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_repos/repos-test.c Tue Sep 15 12:57:59 2015
@@ -3379,22 +3379,22 @@ test_config_pool(const svn_test_opts_t *
                                                "config-pool-test1.cfg",
                                                pool),
                                cfg_buffer1->data, cfg_buffer1->len, NULL,
-                               TRUE, pool));
+                               FALSE, pool));
   SVN_ERR(svn_io_write_atomic2(svn_dirent_join(wrk_dir,
                                                "config-pool-test2.cfg",
                                                pool),
                                cfg_buffer1->data, cfg_buffer1->len, NULL,
-                               TRUE, pool));
+                               FALSE, pool));
   SVN_ERR(svn_io_write_atomic2(svn_dirent_join(wrk_dir,
                                                "config-pool-test3.cfg",
                                                pool),
                                cfg_buffer2->data, cfg_buffer2->len, NULL,
-                               TRUE, pool));
+                               FALSE, pool));
   SVN_ERR(svn_io_write_atomic2(svn_dirent_join(wrk_dir,
                                                "config-pool-test4.cfg",
                                                pool),
                                cfg_buffer2->data, cfg_buffer2->len, NULL,
-                               TRUE, pool));
+                               FALSE, pool));
 
   /* requesting a config over and over again should return the same
      (even though it is not being referenced) */



Mime
View raw message