From 9c0ad90015a431413a1e786f14cd9d83e4cc0afb Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Sun, 13 Mar 2011 13:01:08 +0000 Subject: 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. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1081107 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_rep.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index 04051b8e..596233df 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -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 -> []; -- cgit v1.2.3