diff options
author | Damien F. Katz <damien@apache.org> | 2008-08-05 17:06:43 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2008-08-05 17:06:43 +0000 |
commit | c5e837509e1d9777846192a7ec813b468b61517c (patch) | |
tree | cad82d3fa644eae9609276ab8842a0ce19573323 | |
parent | ba83243fd31766a30be5ecd84a010d8ef612b381 (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
-rw-r--r-- | src/couchdb/couch_file.erl | 6 |
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. |