diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2009-05-17 17:24:13 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2009-05-17 17:24:13 +0000 |
commit | 58f764496d3f3b32d9ce2cc701633271292aa5d2 (patch) | |
tree | c0df85abc926dbae895b2ca0047df0a9891e5d03 /src | |
parent | 209b41daf6b1097016b273578496dc435abcffeb (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')
-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; |