From 0e6ed4ed4cc45f72bbf68ef99730f71bf0af84f6 Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Tue, 12 Oct 2010 15:59:01 +0000 Subject: Merge revision 1021811 from trunk: Avoid gen_server call timeout error after compacting a database (seems to happen only for large DBs, but not always). git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1021812 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_db_updater.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb') diff --git a/src/couchdb/couch_db_updater.erl b/src/couchdb/couch_db_updater.erl index 19a4c165..928c305d 100644 --- a/src/couchdb/couch_db_updater.erl +++ b/src/couchdb/couch_db_updater.erl @@ -186,7 +186,7 @@ handle_cast({compact_done, CompactFilepath}, #db{filepath=Filepath}=Db) -> 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 -> -- cgit v1.2.3