couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1021811 - /couchdb/trunk/src/couchdb/couch_db_updater.erl
Date Tue, 12 Oct 2010 15:57:04 GMT
Author: fdmanana
Date: Tue Oct 12 15:57:04 2010
New Revision: 1021811

URL: http://svn.apache.org/viewvc?rev=1021811&view=rev
Log:
Avoid gen_server call timeout error after compacting a database (seems to happen only for
large DBs, but not always).

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

Modified: couchdb/trunk/src/couchdb/couch_db_updater.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_db_updater.erl?rev=1021811&r1=1021810&r2=1021811&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_db_updater.erl (original)
+++ couchdb/trunk/src/couchdb/couch_db_updater.erl Tue Oct 12 15:57:04 2010
@@ -186,7 +186,7 @@ handle_cast({compact_done, CompactFilepa
         couch_file:delete(RootDir, Filepath),
         ok = file:rename(CompactFilepath, Filepath),
         close_db(Db),
-        ok = gen_server:call(Db#db.main_pid, {db_updated, NewDb2}),
+        ok = gen_server:call(Db#db.main_pid, {db_updated, NewDb2}, infinity),
         ?LOG_INFO("Compaction for db \"~s\" completed.", [Db#db.name]),
         {noreply, NewDb2#db{compactor_pid=nil}};
     false ->



Mime
View raw message