aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--io.c5
2 files changed, 5 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 44cf60a3d7..b1c54d0a31 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Aug 15 16:59:56 2013 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (rb_io_rewind): remove fsync() for Windows to improve the
+ performance.
+
Thu Aug 15 16:30:23 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* test/fileutils/test_fileutils.rb (TestFileUtils#test_rmdir):
diff --git a/io.c b/io.c
index 8678af7c5a..9e3c39ce67 100644
--- a/io.c
+++ b/io.c
@@ -1654,11 +1654,6 @@ rb_io_rewind(VALUE io)
GetOpenFile(io, fptr);
if (io_seek(fptr, 0L, 0) < 0 && errno) rb_sys_fail_path(fptr->pathv);
-#ifdef _WIN32
- if (GetFileType((HANDLE)rb_w32_get_osfhandle(fptr->fd)) == FILE_TYPE_DISK) {
- fsync(fptr->fd);
- }
-#endif
if (io == ARGF.current_file) {
ARGF.lineno -= fptr->lineno;
}