GitHub user eiri opened a pull request:

    https://github.com/apache/couchdb-couch/pull/54

    Fix `active_size` format conversion in `get_db_info` function

    In `active_size` conversion in `couch_db:get_db_info/1` old db reduction's 
size format assumed to be an integer representing active state, when it also 
could be a tuple of active and external sizes.
    
    This handeled correctly, for example, in 
[couch_db_updater.erl](https://github.com/apache/couchdb-couch/blob/master/src/couch_db_updater.erl#L426).
    
    This patch addresses conversion of both possible formats to CouchDB 
`size_info` record.
    
    This closes issue COUCHDB-2701

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/eiri/couchdb-couch fix-get-db-info

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-couch/pull/54.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #54
    
----
commit e2349f39c23a22c1ed054224f1a8ace68a4366e1
Author: Eric Avdey <e...@eiri.ca>
Date:   2015-05-26T12:59:24Z

    Fix `active_size` format conversion in `get_db_info` function
    
    In `active_size` conversion in `couch_db:get_db_info/1` old db reduction's 
size format assumed to be an integer representing active state, when it also 
could be a tuple of active and external sizes.
    
    This handeled correctly, for example, in 
[couch_db_updater.erl](https://github.com/apache/couchdb-couch/blob/master/src/couch_db_updater.erl#L426).
    
    This patch addresses conversion of both possible formats to CouchDB 
`size_info` record.
    
    This closes issue COUCHDB-2701

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to