couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r983331 - /couchdb/trunk/src/couchdb/couch_db_updater.erl
Date Sun, 08 Aug 2010 00:45:08 GMT
Author: kocolosk
Date: Sun Aug  8 00:45:07 2010
New Revision: 983331

URL: http://svn.apache.org/viewvc?rev=983331&view=rev
Log:
fixes COUCHDB-844, delayed commits gets b0rked

Modified:
    couchdb/trunk/src/couchdb/couch_db_updater.erl

Modified: couchdb/trunk/src/couchdb/couch_db_updater.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_db_updater.erl?rev=983331&r1=983330&r2=983331&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_db_updater.erl (original)
+++ couchdb/trunk/src/couchdb/couch_db_updater.erl Sun Aug  8 00:45:07 2010
@@ -701,7 +701,7 @@ commit_data(Db, _) ->
     if is_reference(Timer) -> erlang:cancel_timer(Timer); true -> ok end,
     case db_to_header(Db, OldHeader) of
     OldHeader ->
-        Db;
+        Db#db{waiting_delayed_commit=nil};
     Header ->
         case lists:member(before_header, FsyncOptions) of
         true -> ok = couch_file:sync(Filepath);



Mime
View raw message