]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
radosgw-admin: fix syncs_from in 'bucket sync status' 28739/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 24 May 2019 20:59:34 +0000 (16:59 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 25 Jun 2019 11:05:08 +0000 (13:05 +0200)
commit0cb6122bfa40cebc5970ef024f16eed796ac286b
tree62474b335445625ccf52e0c1fdf67e15b28eadce
parent4409ccf8dd47f69047bdad8ce5c24426a92e1f25
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)
src/rgw/rgw_admin.cc
src/rgw/rgw_zone.h