From ae2d68d08a9c97c71e82da9aae808fb49e699695 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Thu, 10 Jul 2008 22:07:10 +0000 Subject: Wait for the OS to flush our newly written data to disk without timing out too quickly. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@675780 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_file.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb/couch_file.erl') diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl index 26831c8c..9baa1f73 100644 --- a/src/couchdb/couch_file.erl +++ b/src/couchdb/couch_file.erl @@ -156,7 +156,7 @@ truncate(Fd, Pos) -> %%---------------------------------------------------------------------- sync(Fd) -> - gen_server:call(Fd, sync). + gen_server:call(Fd, sync, infinity). %%---------------------------------------------------------------------- %% Purpose: Close the file. Is performed asynchronously. -- cgit v1.2.3