New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgw: metadata sync info should be shown at master zone of slave zoneg… #12187
Conversation
@cbodley Please help to have a look. Thanks! ^_^ |
@@ -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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks right. there's a store->is_meta_master()
function that does the same thing - could you use that instead?
I created a tracker issue so we can get this fix backported to jewel. could you please add this line to your commit message?
|
0d15e40
to
5bd5834
Compare
@cbodley Thanks for your suggestion^_^. I have modified it and added the tracker issue line in my commit message. |
@@ -1975,7 +1975,7 @@ static void sync_status(Formatter *formatter) | |||
|
|||
list<string> md_status; | |||
|
|||
if (zone.id == zonegroup.master_zone) { | |||
if (store->is_meta_master() && zone.id == zonegroup.master_zone) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, i meant this could just be:
if (store->is_meta_master()) {
thanks! would you mind squashing the two into a single commit? (this makes it easier for the backport team) |
…roup When executing 'radosgw-admin sync status', the metadata sync info should be shown on the srceen at master zone of slave zonegroup. Using the function store->is_meta_master() instead of 'zonegroup.is_master && zone.id == zonegroup.master_zone' Fixes: http://tracker.ceph.com/issues/18091 Signed-off-by: Jing Wenjun <jingwenjun@cmss.chinamobile.com>
fcfc3c9
to
c12d0af
Compare
@cbodley Okay. I have squashed the two. Thanks! |
…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