]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix for decode of ZoneGroup id
authorCasey Bodley <cbodley@redhat.com>
Mon, 2 Nov 2015 21:00:33 +0000 (16:00 -0500)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:34 +0000 (16:13 -0800)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_json_enc.cc

index e4f367938dad682677e04f149c7fdbe9d32ecacc..cb108aa59b19853d695c23b0725dbb78efc1cb52 100644 (file)
@@ -901,7 +901,7 @@ static void decode_placement_targets(map<string, RGWZoneGroupPlacementTarget>& t
 void RGWZoneGroup::decode_json(JSONObj *obj)
 {
   RGWSystemMetaObj::decode_json(obj);
-  if (!id.empty()) {
+  if (id.empty()) {
     derr << "old format " << dendl;
     JSONDecoder::decode_json("name", name, obj);
     id = name;