diff options
author | Robert Newson <robert.newson@cloudant.com> | 2011-03-19 13:12:07 +0000 |
---|---|---|
committer | Robert Newson <robert.newson@cloudant.com> | 2011-03-19 13:12:49 +0000 |
commit | 77d198ac790f7c0fc510c853c282b9aee42eede1 (patch) | |
tree | 0816d9af7251542a49a37deb740a3d566dd73820 /apps/couch/src | |
parent | aab27276cb323f747de1e847bc76caca5f706f85 (diff) |
BugzID: 11976 return dbname, not shard name, in userCtx
Diffstat (limited to 'apps/couch/src')
-rw-r--r-- | apps/couch/src/couch_util.erl | 4 |
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}]}. |