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();
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;
}