You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2010/10/17 20:03:39 UTC

svn commit: r1023541 - in /couchdb/branches/new_replicator/src/couchdb: couch_replicator.erl couch_replicator_rev_finders.erl

Author: fdmanana
Date: Sun Oct 17 18:03:39 2010
New Revision: 1023541

URL: http://svn.apache.org/viewvc?rev=1023541&view=rev
Log:
New replicator: changed some defaults.

Modified:
    couchdb/branches/new_replicator/src/couchdb/couch_replicator.erl
    couchdb/branches/new_replicator/src/couchdb/couch_replicator_rev_finders.erl

Modified: couchdb/branches/new_replicator/src/couchdb/couch_replicator.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/new_replicator/src/couchdb/couch_replicator.erl?rev=1023541&r1=1023540&r2=1023541&view=diff
==============================================================================
--- couchdb/branches/new_replicator/src/couchdb/couch_replicator.erl (original)
+++ couchdb/branches/new_replicator/src/couchdb/couch_replicator.erl Sun Oct 17 18:03:39 2010
@@ -229,7 +229,7 @@ do_init(#rep{options = Options} = Rep) -
             "should be at least 2", []),
         {1, 1};
     N ->
-        {lists:max([N div 3, 1]), lists:max([2 * (N div 3) + (N rem 3), 1])}
+        {N div 2, N div 2 + N rem 2}
     end,
 
     case get_value(doc_ids, Options) of

Modified: couchdb/branches/new_replicator/src/couchdb/couch_replicator_rev_finders.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/new_replicator/src/couchdb/couch_replicator_rev_finders.erl?rev=1023541&r1=1023540&r2=1023541&view=diff
==============================================================================
--- couchdb/branches/new_replicator/src/couchdb/couch_replicator_rev_finders.erl (original)
+++ couchdb/branches/new_replicator/src/couchdb/couch_replicator_rev_finders.erl Sun Oct 17 18:03:39 2010
@@ -16,7 +16,7 @@
 
 -include("couch_db.hrl").
 
--define(REV_BATCH_SIZE, 3000).
+-define(REV_BATCH_SIZE, 1000).