Skip to content

Commit

Permalink
rgw: metadata sync info should be shown at master zone of slave zoneg…
Browse files Browse the repository at this point in the history
…roup

When executing 'radosgw-admin sync status', the metadata sync info should be shown on the srceen at master zone of slave zonegroup.

Signed-off-by: Jing Wenjun <jingwenjun@cmss.chinamobile.com>
  • Loading branch information
Jing-Scott committed Nov 25, 2016
1 parent 2c82b43 commit 0d15e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_admin.cc
Expand Up @@ -1975,7 +1975,7 @@ static void sync_status(Formatter *formatter)

list<string> md_status;

if (zone.id == zonegroup.master_zone) {
if (zonegroup.is_master && zone.id == zonegroup.master_zone) {
md_status.push_back("no sync (zone is master)");
} else {
get_md_sync_status(md_status);
Expand Down

0 comments on commit 0d15e40

Please sign in to comment.