From 7748f4bdc38d34b6c078693446ce638e2d0767ae Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Mon, 15 Sep 2008 20:15:45 +0000 Subject: 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 --- src/couchdb/couch_db.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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), -- cgit v1.2.3