From 77d198ac790f7c0fc510c853c282b9aee42eede1 Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Sat, 19 Mar 2011 13:12:07 +0000 Subject: BugzID: 11976 return dbname, not shard name, in userCtx --- apps/couch/src/couch_util.erl | 4 ++-- 1 file 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}]}. -- cgit v1.2.3