summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2008-09-15 20:15:45 +0000
committerDamien F. Katz <damien@apache.org>2008-09-15 20:15:45 +0000
commit7748f4bdc38d34b6c078693446ce638e2d0767ae (patch)
tree6eb6ebe31fa4bb6baa579005002d6394ef4a8091 /src
parent81c29a0791d5d510deaa3a66811b1eada4d45e31 (diff)
Fix for error when saving an attachment during a compaction.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@695607 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_db.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl
index 823de72e..34f92222 100644
--- a/src/couchdb/couch_db.erl
+++ b/src/couchdb/couch_db.erl
@@ -273,7 +273,7 @@ update_docs(#db{update_pid=UpdatePid}=Db, Docs, Options) ->
case gen_server:call(UpdatePid, {update_docs, DocBuckets3, [new_edits | Options]}, infinity) of
ok -> {ok, NewRevs};
retry ->
- Db2 = open_ref_counted(Db#db.main_pid, self()),
+ {ok, Db2} = open_ref_counted(Db#db.main_pid, self()),
DocBuckets4 = [[doc_flush_binaries(Doc, Db2#db.fd) || Doc <- Bucket] || Bucket <- DocBuckets3],
% We only retry once
close(Db2),