From 768e5d52fb295b000940f6a806c3d4bfc3e4f54d Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Sat, 12 May 2012 01:24:27 -0400 Subject: Add new utility functions FileCommit(), RenameOver() --- src/main.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/main.h') diff --git a/src/main.h b/src/main.h index 5ac5547a3e..331b16b509 100644 --- a/src/main.h +++ b/src/main.h @@ -956,13 +956,7 @@ public: // Flush stdio buffers and commit to disk before returning fflush(fileout); if (!IsInitialBlockDownload() || (nBestHeight+1) % 500 == 0) - { -#ifdef WIN32 - _commit(_fileno(fileout)); -#else - fsync(fileno(fileout)); -#endif - } + FileCommit(fileout); return true; } -- cgit v1.2.3