From: Yehuda Sadeh Date: Tue, 5 May 2015 21:43:05 +0000 (-0700) Subject: rgw: change error output related to orphans X-Git-Tag: v0.94.4~49^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bb1d4cc3a3e9af3bf8cd8fd80085fbbbaeb8b89f;p=ceph.git rgw: change error output related to orphans Signed-off-by: Yehuda Sadeh (cherry picked from commit cac57caf639236adc9a641a85352eb729b58725a) --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 768882a0c5b5..dbc26a973c91 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -2600,12 +2600,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(); diff --git a/src/rgw/rgw_orphan.cc b/src/rgw/rgw_orphan.cc index d048cf6b7330..845d904d3233 100644 --- a/src/rgw/rgw_orphan.cc +++ b/src/rgw/rgw_orphan.cc @@ -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; }