]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: key indexes are only link to user info
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 13 Dec 2012 23:52:34 +0000 (15:52 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 1 Feb 2013 18:35:10 +0000 (10:35 -0800)
commit0797be3f86df8b413256d69e3770ec39ed6e6912
treef08138f1bf34cc583af6d03aa34c6293f52af8dc
parent91f8c3c859235d01f3bfd1b131c9cc6c83aac7a4
rgw: key indexes are only link to user info

Instead of keeping multiple copies of the user info,
we just treat the key index as a pointer to the actual
user info (indexed by uid). This helps with two issues:
first, it scales better as we don't need to update the
entire set of keys whenever we make any change. Second,
it helps with the uid index atomicity.
One point to keep in mind is that both the links and the
info can be cached, so effect on performance is minimal.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: caleb miles <caleb.miles@inktank.com>
src/rgw/rgw_admin.cc
src/rgw/rgw_swift.cc
src/rgw/rgw_user.cc
src/rgw/rgw_user.h