This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch COUCHDB-3326-clustered-purge-davisp-refactor-2
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 21747f2429577ae34e6c167a3077e10cee7fe11a
Author: Paul J. Davis <paul.joseph.da...@gmail.com>
AuthorDate: Thu Apr 26 11:36:49 2018 -0500

    Fix bug during purge
---
 src/couch/src/couch_db_updater.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch/src/couch_db_updater.erl 
b/src/couch/src/couch_db_updater.erl
index a2de3bc..6a30d65 100644
--- a/src/couch/src/couch_db_updater.erl
+++ b/src/couch/src/couch_db_updater.erl
@@ -128,7 +128,7 @@ handle_call({purge_docs, IdRevs}, _From, Db) ->
                 % If we purged every #leaf{} in the doc record
                 % then we're removing it completely from the
                 % database.
-                FDIAcc;
+                {FDIAcc, SeqAcc0};
             _ ->
                 % Its possible to purge the #leaf{} that contains
                 % the update_seq where this doc sits in the update_seq

-- 
To stop receiving notification emails like this one, please contact
dav...@apache.org.

Reply via email to