couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r695607 - /incubator/couchdb/trunk/src/couchdb/couch_db.erl
Date Mon, 15 Sep 2008 20:15:46 GMT
Author: damien
Date: Mon Sep 15 13:15:45 2008
New Revision: 695607

URL: http://svn.apache.org/viewvc?rev=695607&view=rev
Log:
Fix for error when saving an attachment during a compaction.

Modified:
    incubator/couchdb/trunk/src/couchdb/couch_db.erl

Modified: incubator/couchdb/trunk/src/couchdb/couch_db.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/src/couchdb/couch_db.erl?rev=695607&r1=695606&r2=695607&view=diff
==============================================================================
--- incubator/couchdb/trunk/src/couchdb/couch_db.erl (original)
+++ incubator/couchdb/trunk/src/couchdb/couch_db.erl Mon Sep 15 13:15:45 2008
@@ -273,7 +273,7 @@
     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),



Mime
View raw message