couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1023541 - in /couchdb/branches/new_replicator/src/couchdb: couch_replicator.erl couch_replicator_rev_finders.erl
Date Sun, 17 Oct 2010 18:03:39 GMT
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).
 
 
 



Mime
View raw message