Skip to content

Commit

Permalink
Merge pull request ceph#10831 from cbodley/wip-17051
Browse files Browse the repository at this point in the history
rgw: delete region map after upgrade to zonegroup map
Reviewed-by: Orit Wasserman <[email protected]>
  • Loading branch information
oritwas committed Aug 25, 2016
2 parents cd28cf2 + 215cd6f commit c19ecb0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/rgw/rgw_rados.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3315,6 +3315,15 @@ int RGWRados::convert_regionmap()
current_period.set_user_quota(zonegroupmap.user_quota);
current_period.set_bucket_quota(zonegroupmap.bucket_quota);

// remove the region_map so we don't try to convert again
rgw_obj obj(pool, oid);
ret = delete_system_obj(obj);
if (ret < 0) {
ldout(cct, 0) << "Error could not remove " << obj
<< " after upgrading to zonegroup map: " << cpp_strerror(ret) << dendl;
return ret;
}

return 0;
}

Expand Down

0 comments on commit c19ecb0

Please sign in to comment.