aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-02 17:56:32 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-02 17:56:32 +0000
commitab3002afa38570ada924c551c701ea27084f98f4 (patch)
treeadab5a043ec34d880b0ec326a4c4e3c134e51a8b /io.c
parentbc6c60f738a62679cd960cacea5c2611211eda0e (diff)
downloadruby-ab3002afa38570ada924c551c701ea27084f98f4.tar.gz
* io.c (rb_io_flush_raw, rb_io_fsync): [EXPERIMENTAL] remove force
syncing for Win32 to speed up IO. this may break some tests, and they'll be fixed later. [ruby-core:58570] [Bug #9153] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/io.c b/io.c
index 599cbf24d4..5abf1e241d 100644
--- a/io.c
+++ b/io.c
@@ -1564,11 +1564,6 @@ rb_io_flush_raw(VALUE io, int sync)
if (fptr->mode & FMODE_WRITABLE) {
if (io_fflush(fptr) < 0)
rb_sys_fail(0);
-#ifdef _WIN32
- if (sync && GetFileType((HANDLE)rb_w32_get_osfhandle(fptr->fd)) == FILE_TYPE_DISK) {
- rb_thread_io_blocking_region(nogvl_fsync, fptr, fptr->fd);
- }
-#endif
}
if (fptr->mode & FMODE_READABLE) {
io_unread(fptr);
@@ -1930,10 +1925,6 @@ rb_io_fsync(VALUE io)
if (io_fflush(fptr) < 0)
rb_sys_fail(0);
-# ifndef _WIN32 /* already called in io_fflush() */
- if ((int)rb_thread_io_blocking_region(nogvl_fsync, fptr, fptr->fd) < 0)
- rb_sys_fail_path(fptr->pathv);
-# endif
return INT2FIX(0);
}
#else