]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_admin: improve period update errors 8564/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Tue, 12 Apr 2016 19:31:19 +0000 (21:31 +0200)
committerAbhishek Lekshmanan <alekshmanan@suse.com>
Mon, 18 Apr 2016 20:46:53 +0000 (22:46 +0200)
commit7ca01d4ff7449a87c54101347a83f6b9199e58f9
treec9243a930bdb36e49ef80ae33d8d1e562b9006d5
parent69f8174e9c9be37cfe02cee54fe490061168756c
rgw_admin: improve period update errors

If we do a period update on a realm with multiple masters, we fail
stating invalid argument, improving this to suggest that we have
actually errored out because of multiple master zg in a realm, and
printing both of these zonegroups. RGWPeriodMap::update takes
CephContext as an argument, so that we can use ldout. Also dropping the
error messages reporting invalid arguments on period.update() as these
are handled within the function itself whenever it manifests itself.

Fixes: http://tracker.ceph.com/issues/15251
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_admin.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h