diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2011-03-13 13:01:08 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2011-03-13 13:01:08 +0000 |
commit | 9c0ad90015a431413a1e786f14cd9d83e4cc0afb (patch) | |
tree | 7cd6f3b5d8e944459d3cfeec39820c217ee78baa /src | |
parent | c90b21f8ba4d2d044836477323ee4504163eb9d5 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_rep.erl | 3 |
1 files changed, 2 insertions, 1 deletions
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 -> []; |