You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2017/05/13 03:27:15 UTC
[couchdb] 07/10: ss - add legacy engine
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 <pa...@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" <co...@couchdb.apache.org>.