From 9f5c2be171c6964e4e05456833e742b0009bf029 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Sun, 6 Sep 2009 19:30:23 +0000 Subject: 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 --- src/couchdb/couch_rep.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -> -- cgit v1.2.3