couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [couchdb] 07/10: ss - add legacy engine
Date Sat, 13 May 2017 03:27:15 GMT
This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch COUCHDB-3287-pluggable-storage-engines
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 52906e4f48513ef0deeebd5fc30247f52c649d42
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
AuthorDate: Fri May 12 16:06:46 2017 -0500

    ss - add legacy engine
---
 src/couch/src/couch_bt_engine.erl | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/couch/src/couch_bt_engine.erl b/src/couch/src/couch_bt_engine.erl
index 0cd9d65..42e2142 100644
--- a/src/couch/src/couch_bt_engine.erl
+++ b/src/couch/src/couch_bt_engine.erl
@@ -193,8 +193,8 @@ get_compacted_seq(#st{header = Header}) ->
 
 
 get_del_doc_count(#st{} = St) ->
-    {ok, {_, DelCount, _}} = couch_btree:full_reduce(St#st.id_tree),
-    DelCount.
+    {ok, Reds} = couch_btree:full_reduce(St#st.id_tree),
+    {ok, element(2, Reds)}.
 
 
 get_disk_version(#st{header = Header}) ->
@@ -202,8 +202,9 @@ get_disk_version(#st{header = Header}) ->
 
 
 get_doc_count(#st{} = St) ->
-    {ok, {Count, _, _}} = couch_btree:full_reduce(St#st.id_tree),
-    Count.
+    {ok, Reds} = couch_btree:full_reduce(St#st.id_tree),
+    {ok, element(1, Reds)}.
+
 
 get_epochs(#st{header = Header}) ->
     couch_bt_engine_header:get(Header, epochs).

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message