ldout(cct, 20) << *op << ": operate()" << dendl;
int r = op->operate();
if (r < 0) {
- ldout(cct, 0) << "ERROR: op->operate() returned r=" << r << dendl;
+ ldout(cct, 20) << *op << ": operate() returned r=" << r << dendl;
}
error_flag = op->is_error();
ret = stack->operate(&env);
stack->set_is_scheduled(false);
if (ret < 0) {
- ldout(cct, 0) << "ERROR: stack->operate() returned ret=" << ret << dendl;
+ ldout(cct, 20) << "stack->operate() returned ret=" << ret << dendl;
}
if (stack->is_error()) {
int r = run(stacks);
if (r < 0) {
- ldout(cct, 0) << "ERROR: run(stacks) returned r=" << r << dendl;
+ ldout(cct, 20) << "run(stacks) returned r=" << r << dendl;
} else {
r = op->get_ret_status();
}
RGWAioCompletionNotifier *RGWCoroutinesManager::create_completion_notifier(RGWCoroutinesStack *stack)
{
- return new RGWAioCompletionNotifier(&completion_mgr, (void *)stack);
+ RGWAioCompletionNotifier *cn = new RGWAioCompletionNotifier(completion_mgr, (void *)stack);
+ completion_mgr->register_completion_notifier(cn);
+ return cn;
}
void RGWCoroutinesManager::dump(Formatter *f) const {
int ret;
while (collect(&ret)) {
if (ret < 0) {
- ldout(cct, 0) << "ERROR: collect() returned error" << dendl;
+ ldout(cct, 10) << "collect() returned ret=" << ret << dendl;
/* we should have reported this error */
log_error() << "ERROR: collect() returned error (ret=" << ret << ")";
}