couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r727050 - /couchdb/trunk/src/couchdb/couch_file.erl
Date Tue, 16 Dec 2008 13:42:36 GMT
Author: jan
Date: Tue Dec 16 05:42:35 2008
New Revision: 727050

URL: http://svn.apache.org/viewvc?rev=727050&view=rev
Log:
do not fail on heavily loaded systems. wait forever for syscalls to return

Modified:
    couchdb/trunk/src/couchdb/couch_file.erl

Modified: couchdb/trunk/src/couchdb/couch_file.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_file.erl?rev=727050&r1=727049&r2=727050&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_file.erl (original)
+++ couchdb/trunk/src/couchdb/couch_file.erl Tue Dec 16 05:42:35 2008
@@ -56,7 +56,7 @@
 %%----------------------------------------------------------------------
 
 pread(Fd, Pos, Bytes) when Bytes > 0 ->
-    gen_server:call(Fd, {pread, Pos, Bytes}).
+    gen_server:call(Fd, {pread, Pos, Bytes}, infinity).
 
 
 %%----------------------------------------------------------------------
@@ -67,7 +67,7 @@
 %%----------------------------------------------------------------------
 
 pwrite(Fd, Pos, Bin) ->
-    gen_server:call(Fd, {pwrite, Pos, Bin}).
+    gen_server:call(Fd, {pwrite, Pos, Bin}, infinity).
 
 %%----------------------------------------------------------------------
 %% Purpose: To append a segment of zeros to the end of the file.
@@ -78,7 +78,7 @@
 %%----------------------------------------------------------------------
 
 expand(Fd, Bytes) when Bytes > 0 ->
-    gen_server:call(Fd, {expand, Bytes}).
+    gen_server:call(Fd, {expand, Bytes}, infinity).
 
 
 %%----------------------------------------------------------------------
@@ -135,7 +135,7 @@
 
 % length in bytes
 bytes(Fd) ->
-    gen_server:call(Fd, bytes).
+    gen_server:call(Fd, bytes, infinity).
 
 %%----------------------------------------------------------------------
 %% Purpose: Truncate a file to the number of bytes.
@@ -144,7 +144,7 @@
 %%----------------------------------------------------------------------
 
 truncate(Fd, Pos) ->
-    gen_server:call(Fd, {truncate, Pos}).
+    gen_server:call(Fd, {truncate, Pos}, infinity).
 
 %%----------------------------------------------------------------------
 %% Purpose: Ensure all bytes written to the file are flushed to disk.



Mime
View raw message