summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2009-09-06 19:30:23 +0000
committerAdam Kocoloski <kocolosk@apache.org>2009-09-06 19:30:23 +0000
commit9f5c2be171c6964e4e05456833e742b0009bf029 (patch)
treee5144656f01c117845b6ed4b4afe1efeba4ae746 /src
parent1a92fdce74a8978fac01473b5fdb098af4de3f15 (diff)
check if either history is empty, not both
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@811868 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_rep.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl
index b1c46db9..bcd1807c 100644
--- a/src/couchdb/couch_rep.erl
+++ b/src/couchdb/couch_rep.erl
@@ -268,7 +268,7 @@ compare_replication_logs(SrcDoc, TgtDoc) ->
compare_rep_history(SourceHistory, TargetHistory)
end.
-compare_rep_history([], []) ->
+compare_rep_history(S, T) when S =:= [] orelse T =:= [] ->
?LOG_INFO("no common ancestry -- performing full replication", []),
{0, []};
compare_rep_history([{S}|SourceRest], [{T}|TargetRest]=Target) ->