diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_rep.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index 4c938683..c356e189 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -769,7 +769,8 @@ open_doc_revs(Db, DocId, Revs, Options) -> should_flush(DocCount) when DocCount > ?BUFFER_NDOCS -> true; should_flush(_DocCount) -> - MeAndMyLinks = [self()|element(2,process_info(self(),links))], + MeAndMyLinks = [self()| + [P || P <- element(2,process_info(self(),links)), is_pid(P)]], case length(MeAndMyLinks)/2 > ?BUFFER_NATTACHMENTS of true -> true; |