]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add error messages to realm::create
authorOrit Wasserman <owasserm@redhat.com>
Mon, 18 Jan 2016 12:28:14 +0000 (13:28 +0100)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:55 +0000 (16:13 -0800)
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
src/rgw/rgw_rados.cc

index 8eb90b36f86466a9899d48fb856ba660ed56371c..f323287f7b02c3790aedbd184f196e90c2d54727 100644 (file)
@@ -700,6 +700,7 @@ int RGWRealm::create(bool exclusive)
   // create the control object for watch/notify
   ret = create_control();
   if (ret < 0) {
+    ldout(cct, 0) << "ERROR creating control for new realm " << name << ": " << cpp_strerror(-ret) << dendl;
     return ret;
   }
   RGWPeriod period;
@@ -724,6 +725,7 @@ int RGWRealm::create(bool exclusive)
   }
   ret = set_current_period(period);
   if (ret < 0) {
+    lderr(cct) << "ERROR: failed set current period " << current_period << dendl;
     return ret;
   }