couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hdiedrich <...@git.apache.org>
Subject [GitHub] couchdb-couch pull request: Fix `active_size` format conversion in...
Date Wed, 27 May 2015 18:46:15 GMT
Github user hdiedrich commented on the pull request:

    https://github.com/apache/couchdb-couch/pull/54#issuecomment-106030561
  
    I mean the `#btree`'s `reduce` field that is used in `couch_btree.erl`
    ```Erlang
    full_reduce(#btree{root=nil,reduce=Reduce}) ->
       {ok, Reduce(reduce, [])};
    full_reduce(#btree{root=Root}) ->
       {ok, element(2, Root)}.
    ```
    and ultimately produces the tuple `{AS, ES}` at the heart of this PR, which could be in
`SizeInfo0`, via 
    
    ```Erlang
    {ok, DbReduction} = couch_btree:full_reduce(IdBtree),
    SizeInfo0 = element(3, DbReduction),
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message