You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by chewbranca <gi...@git.apache.org> on 2014/04/08 19:34:40 UTC

[GitHub] couchdb-couch-mrview pull request: 1993 bigcouch couch mrview

Github user chewbranca commented on a diff in the pull request:

    https://github.com/apache/couchdb-couch-mrview/pull/1#discussion_r11401514
  
    --- Diff: src/couch_mrview.erl ---
    @@ -127,6 +127,10 @@ query_view(Db, {Type, View, Ref}, Args, Callback, Acc) ->
         end.
     
     
    +get_info(Db, DDocId) when is_binary(DDocId) ->
    +    DbName = mem3:dbname(Db#db.name),
    --- End diff --
    
    I think we should move `mem3:dbname` into `couch_util`, now that clustering is a core part of CouchDB. This basically just allows you to get the dbname out of the db record, and it will strip out the shard info leaving only the name, as `ddoc_cache:open` operates on databases, not shards.


---
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.
---