]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: change error output related to orphans
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 5 May 2015 21:43:05 +0000 (14:43 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 29 Jun 2015 22:09:02 +0000 (15:09 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_admin.cc
src/rgw/rgw_orphan.cc

index 5d9b209326cd004145bfb34a1e42751c0a0f6e81..a8ade0cf1eed3eea028e696521ced431a8133ed1 100644 (file)
@@ -2573,12 +2573,7 @@ next:
 
     int ret = search.init(job_id, &info);
     if (ret < 0) {
-      if (ret == -EEXIST) {
-        cerr << "cannot init new search, job already exists" << std::endl;
-      }
-      if (ret == -ENOENT) {
-        cerr << "job not found" << std::endl;
-      }
+      cerr << "could not init search, ret=" << ret << std::endl;
       return -ret;
     }
     ret = search.run();
index d048cf6b7330d56efd64be65e13a37e07f5687ca..845d904d3233a98a004a6b082203a1abcae9037b 100644 (file)
@@ -115,7 +115,7 @@ int RGWOrphanStore::init()
   librados::Rados *rados = store->get_rados();
   int r = rados->ioctx_create(log_pool, ioctx);
   if (r < 0) {
-    cerr << "ERROR: failed to open log pool ret=" << r << std::endl;
+    cerr << "ERROR: failed to open log pool (" << store->get_zone_params().log_pool.name << " ret=" << r << std::endl;
     return r;
   }