summaryrefslogtreecommitdiff
path: root/apps/couch/src
diff options
context:
space:
mode:
authorRobert Newson <robert.newson@cloudant.com>2011-03-19 13:12:07 +0000
committerRobert Newson <robert.newson@cloudant.com>2011-03-19 13:12:49 +0000
commit77d198ac790f7c0fc510c853c282b9aee42eede1 (patch)
tree0816d9af7251542a49a37deb740a3d566dd73820 /apps/couch/src
parentaab27276cb323f747de1e847bc76caca5f706f85 (diff)
BugzID: 11976 return dbname, not shard name, in userCtx
Diffstat (limited to 'apps/couch/src')
-rw-r--r--apps/couch/src/couch_util.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/couch/src/couch_util.erl b/apps/couch/src/couch_util.erl
index adcb4450..a7de6994 100644
--- a/apps/couch/src/couch_util.erl
+++ b/apps/couch/src/couch_util.erl
@@ -158,8 +158,8 @@ json_apply_field({Key, NewValue}, [{OtherKey, OtherVal} | Headers], Acc) ->
json_apply_field({Key, NewValue}, [], Acc) ->
{[{Key, NewValue}|Acc]}.
-json_user_ctx(#db{name=DbName, user_ctx=Ctx}) ->
- {[{<<"db">>, DbName},
+json_user_ctx(#db{name=ShardName, user_ctx=Ctx}) ->
+ {[{<<"db">>, mem3:dbname(ShardName)},
{<<"name">>,Ctx#user_ctx.name},
{<<"roles">>,Ctx#user_ctx.roles}]}.