couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1081106 - /couchdb/trunk/src/couchdb/couch_replicator.erl
Date Sun, 13 Mar 2011 12:58:39 GMT
Author: fdmanana
Date: Sun Mar 13 12:58:38 2011
New Revision: 1081106

URL: http://svn.apache.org/viewvc?rev=1081106&view=rev
Log:
Add replication ID version information to checkpoints

Now that we have versioned replication IDs (introduced by COUCHDB-810),
it's useful to know which version is being used in the replication
checkpoints. This is mostly for debugging purposes.


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

Modified: couchdb/trunk/src/couchdb/couch_replicator.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_replicator.erl?rev=1081106&r1=1081105&r2=1081106&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_replicator.erl (original)
+++ couchdb/trunk/src/couchdb/couch_replicator.erl Sun Mar 13 12:58:38 2011
@@ -627,7 +627,8 @@ do_checkpoint(State) ->
         ]},
         BaseHistory = [
             {<<"session_id">>, SessionId},
-            {<<"source_last_seq">>, NewSeq}
+            {<<"source_last_seq">>, NewSeq},
+            {<<"replication_id_version">>, ?REP_ID_VERSION}
         ] ++ case get_value(doc_ids, Options) of
         undefined ->
             [];



Mime
View raw message