summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorPaul Joseph Davis <davisp@apache.org>2010-02-22 15:18:46 +0000
committerPaul Joseph Davis <davisp@apache.org>2010-02-22 15:18:46 +0000
commita4af409b04f535c09fca9b3db96caa3d7486c309 (patch)
treef0bbfb1fe8cc99fa7f456d48db0e2b465cdef953 /src/couchdb
parentb3f6661126c03eeb3ec478ef4156c2cc5da1d8d0 (diff)
_purge was incorrectly returning update_seq.
Patched and tested. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@912606 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 d0f8ec61..982ee03a 100644
--- a/src/couchdb/couch_db_updater.erl
+++ b/src/couchdb/couch_db_updater.erl
@@ -130,7 +130,7 @@ handle_call({purge_docs, IdRevs}, _From, Db) ->
ok = gen_server:call(Db2#db.main_pid, {db_updated, Db2}),
couch_db_update_notifier:notify({updated, Db#db.name}),
- {reply, {ok, Db2#db.update_seq, IdRevsPurged}, Db2}.
+ {reply, {ok, (Db2#db.header)#db_header.purge_seq, IdRevsPurged}, Db2}.
handle_cast(start_compact, Db) ->