]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
radosgw-admin: fix syncs_from in 'bucket sync status' 29270/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 24 May 2019 20:59:34 +0000 (16:59 -0400)
committerNathan Cutler <ncutler@suse.com>
Wed, 24 Jul 2019 14:01:47 +0000 (16:01 +0200)
commitfb1d105b58c777103792d725fa7a68b39b3d9fe2
tree553c83c31f73c07cfbf9fd5ee62750d85f83ede0
parentc1cd465c4f7a185c193fc8999a74b9ff428ac254
radosgw-admin: fix syncs_from in 'bucket sync status'

If a zone is set up with sync_from_all=false, the bucket sync status
command will incorrectly report "not in sync_from" because it's calling
'zone.syncs_from(source.id)', where syncs_from() expects a zone name
instead of id

Fixes: http://tracker.ceph.com/issues/40022
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 9da888686c3a8880976cd604bdafc4361068c985)

Conflicts:
src/rgw/rgw_zone.h
- in mimic, this code is in src/rgw/rgw_rados.h - made the change there instead
src/rgw/rgw_admin.cc
src/rgw/rgw_rados.h