summaryrefslogtreecommitdiff
path: root/apps/couch/src
diff options
context:
space:
mode:
authorRobert Newson <robert.newson@cloudant.com>2011-02-05 19:23:51 +0000
committerRobert Newson <robert.newson@cloudant.com>2011-02-05 19:23:51 +0000
commitd2a9229c4f0a750d8e4191f60227572117a53ab7 (patch)
treef65c7b9ef41cfc5ee0c6c1e63c3a01a512d941a9 /apps/couch/src
parent3b6cdd3c5480d7c5cd76c938fcc1c078b91582f9 (diff)
fix replication checkpointing.
Diffstat (limited to 'apps/couch/src')
-rw-r--r--apps/couch/src/couch_rep.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/couch/src/couch_rep.erl b/apps/couch/src/couch_rep.erl
index c804b49d..ca1e081a 100644
--- a/apps/couch/src/couch_rep.erl
+++ b/apps/couch/src/couch_rep.erl
@@ -532,7 +532,7 @@ open_replication_log(#http_db{}=Db, RepId) ->
DocId = ?LOCAL_DOC_PREFIX ++ RepId,
Req = Db#http_db{resource=couch_util:url_encode(DocId)},
case couch_rep_httpc:request(Req) of
- {[{<<"error">>, _}, {<<"reason">>, _}]} ->
+ {[{<<"error">>, _}, {<<"reason">>, _} | _Rest]} ->
?LOG_DEBUG("didn't find a replication log for ~s", [Db#http_db.url]),
#doc{id=?l2b(DocId)};
Doc ->