diff options
author | Jan Lehnardt <jan@apache.org> | 2009-09-05 20:37:45 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2009-09-05 20:37:45 +0000 |
commit | aa5daeca5c54432e6b985508fadcd3d85cc5388d (patch) | |
tree | 97efa66d0b6def22a30f86df8265595b3c16cef9 /src/couchdb/couch_rep.erl | |
parent | a41b4818cc496f07a07c324a8a1f7c82fbf0317a (diff) |
code =~ s/imperative/declarative & faster/, thanks to Kostis Sagonas for pointing these out, more to come
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@811709 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_rep.erl')
-rw-r--r-- | src/couchdb/couch_rep.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index 1411716f..b1c46db9 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(S, T) when length(S) =:= 0 orelse length(T) =:= 0 -> +compare_rep_history([], []) -> ?LOG_INFO("no common ancestry -- performing full replication", []), {0, []}; compare_rep_history([{S}|SourceRest], [{T}|TargetRest]=Target) -> |