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 2011/03/13 13:58:39 UTC

svn commit: r1081106 - /couchdb/trunk/src/couchdb/couch_replicator.erl

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 ->
             [];