summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-09-22 19:45:24 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-09-22 19:45:24 +0000
commita56f5e49f01de3aeb631a263a8801d6c2c677d89 (patch)
tree8d11ae32cb37cd90f996defb2ff99f171b4d7d09 /src
parent3c96e92582e2273bf6760a5b4561ad87cb62c69b (diff)
Removing duplicated code.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1000156 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_file.erl12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl
index f809ce1e..aae89d7f 100644
--- a/src/couchdb/couch_file.erl
+++ b/src/couchdb/couch_file.erl
@@ -158,17 +158,7 @@ sync(Fd) ->
%% Returns: ok
%%----------------------------------------------------------------------
close(Fd) ->
- MRef = erlang:monitor(process, Fd),
- try
- catch unlink(Fd),
- catch exit(Fd, shutdown),
- receive
- {'DOWN', MRef, _, _, _} ->
- ok
- end
- after
- erlang:demonitor(MRef, [flush])
- end.
+ couch_util:shutdown_sync(Fd).
delete(RootDir, Filepath) ->