couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r775720 - /couchdb/trunk/src/couchdb/couch_rep.erl
Date Sun, 17 May 2009 17:24:14 GMT
Author: kocolosk
Date: Sun May 17 17:24:13 2009
New Revision: 775720

URL: http://svn.apache.org/viewvc?rev=775720&view=rev
Log:
guard memory_footprint() list with is_pid()

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

Modified: couchdb/trunk/src/couchdb/couch_rep.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_rep.erl?rev=775720&r1=775719&r2=775720&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep.erl Sun May 17 17:24:13 2009
@@ -769,7 +769,8 @@
 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;



Mime
View raw message