]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
radosgw-admin: fix syncs_from in 'bucket sync status' 28243/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 24 May 2019 20:59:34 +0000 (16:59 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 24 May 2019 21:01:13 +0000 (17:01 -0400)
commit9da888686c3a8880976cd604bdafc4361068c985
tree96c3c8926e3fe6920a60e25172bbe5fb62802297
parentb97022ce553d278c60524950ca3b16825dac0839
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>
src/rgw/rgw_admin.cc
src/rgw/rgw_zone.h