couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1081107 - /couchdb/branches/1.1.x/src/couchdb/couch_rep.erl
Date Sun, 13 Mar 2011 13:01:08 GMT
Author: fdmanana
Date: Sun Mar 13 13:01:08 2011
New Revision: 1081107

URL: http://svn.apache.org/viewvc?rev=1081107&view=rev
Log:
Merged revision 1081106 from trunk

    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/branches/1.1.x/src/couchdb/couch_rep.erl

Modified: couchdb/branches/1.1.x/src/couchdb/couch_rep.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_rep.erl?rev=1081107&r1=1081106&r2=1081107&view=diff
==============================================================================
--- couchdb/branches/1.1.x/src/couchdb/couch_rep.erl (original)
+++ couchdb/branches/1.1.x/src/couchdb/couch_rep.erl Sun Mar 13 13:01:08 2011
@@ -679,7 +679,8 @@ do_checkpoint(State) ->
         ]},
         BaseHistory = [
             {<<"session_id">>, SessionId},
-            {<<"source_last_seq">>, NewSeqNum}
+            {<<"source_last_seq">>, NewSeqNum},
+            {<<"replication_id_version">>, ?REP_ID_VERSION}
         ] ++ case couch_util:get_value(<<"doc_ids">>, RepDoc) of
         undefined ->
             [];



Mime
View raw message