aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-12 01:24:27 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-05-16 19:25:25 -0400
commit768e5d52fb295b000940f6a806c3d4bfc3e4f54d (patch)
treecd0ae64786ceb7c363226fee822dad8ae919dd76 /src/main.h
parent49232d1abf96f85f785e0ee95fbb79d0338855bc (diff)
Add new utility functions FileCommit(), RenameOver()
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h8
1 files changed, 1 insertions, 7 deletions
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;
}