couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1132597 - /couchdb/trunk/src/couchdb/couch_replicator_doc_copier.erl
Date Mon, 06 Jun 2011 11:14:37 GMT
Author: fdmanana
Date: Mon Jun  6 11:14:36 2011
New Revision: 1132597

URL: http://svn.apache.org/viewvc?rev=1132597&view=rev
Log:
Replicator: bubble up missing_stub errors

This is necessary to retry document writes when this error
happens.

Modified:
    couchdb/trunk/src/couchdb/couch_replicator_doc_copier.erl

Modified: couchdb/trunk/src/couchdb/couch_replicator_doc_copier.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_replicator_doc_copier.erl?rev=1132597&r1=1132596&r2=1132597&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_replicator_doc_copier.erl (original)
+++ couchdb/trunk/src/couchdb/couch_replicator_doc_copier.erl Mon Jun  6 11:14:36 2011
@@ -513,6 +513,8 @@ flush_doc(Target, #doc{id = Id, revs = {
             [Id, couch_api_wrap:db_uri(Target), couch_util:to_binary(Error)]),
         Error
     catch
+    throw:{missing_stub, _} = MissingStub ->
+        throw(MissingStub);
     throw:{Error, Reason} ->
         ?LOG_ERROR("Replicator: couldn't write document `~s`, revision `~s`,"
             " to target database `~s`. Error: `~s`, reason: `~s`.",



Mime
View raw message