summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2010-08-08 00:46:03 +0000
committerAdam Kocoloski <kocolosk@apache.org>2010-08-08 00:46:03 +0000
commit2ae18a455828abcf4018e613fcb1d6d6324368fa (patch)
tree047e11af509075f24441c32687509f688f07adcb /src/couchdb
parent66e560d8af2c557e3262c941830e7f2b0bf9355a (diff)
fixes COUCHDB-844, delayed commits gets b0rked
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@983333 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_db_updater.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_db_updater.erl b/src/couchdb/couch_db_updater.erl
index f0879700..19a4c165 100644
--- a/src/couchdb/couch_db_updater.erl
+++ b/src/couchdb/couch_db_updater.erl
@@ -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);