summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_rep.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2009-05-17 17:24:13 +0000
committerAdam Kocoloski <kocolosk@apache.org>2009-05-17 17:24:13 +0000
commit58f764496d3f3b32d9ce2cc701633271292aa5d2 (patch)
treec0df85abc926dbae895b2ca0047df0a9891e5d03 /src/couchdb/couch_rep.erl
parent209b41daf6b1097016b273578496dc435abcffeb (diff)
guard memory_footprint() list with is_pid()
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775720 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_rep.erl')
-rw-r--r--src/couchdb/couch_rep.erl3
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;