summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_file.erl
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2008-08-05 17:06:43 +0000
committerDamien F. Katz <damien@apache.org>2008-08-05 17:06:43 +0000
commitc5e837509e1d9777846192a7ec813b468b61517c (patch)
treecad82d3fa644eae9609276ab8842a0ce19573323 /src/couchdb/couch_file.erl
parentba83243fd31766a30be5ecd84a010d8ef612b381 (diff)
Fixed bug where we attempted to match a linked port to the current fd, but fail because the fd structure is more than the linked port.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@682792 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_file.erl')
-rw-r--r--src/couchdb/couch_file.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl
index c04ac33a..37e1d7ac 100644
--- a/src/couchdb/couch_file.erl
+++ b/src/couchdb/couch_file.erl
@@ -396,15 +396,15 @@ handle_info(Info, Fd) ->
should_close(Fd) ->
case process_info(self(), links) of
- {links, [Fd]} ->
- % no linkers left (except our fd). What about monitors?
+ {links, [_]} ->
+ % no linkers left (except our fd port). What about monitors?
case process_info(self(), monitors) of
{monitors, []} ->
true;
_ ->
false
end;
- {links, Links} when length(Links) > 1 ->
+ {links, [_|_]} ->
false
end.