void RGWLibProcess::run()
{
while (! shutdown) {
- std::cout << "RGWLibProcess GC" << std::endl;
+ lsubdout(cct, rgw, 5) << "RGWLibProcess GC" << dendl;
unique_lock uniq(mtx);
restart:
int cur_gen = gen;
}
bool eof() {
- std::cout << "READDIR offset: " << *offset
- << " is_truncated: " << is_truncated
- << std::endl;
+ lsubdout(cct, rgw, 15) << "READDIR offset: " << *offset
+ << " is_truncated: " << is_truncated
+ << dendl;
return !is_truncated;
}
marker.name += "/";
marker.name += sm;
}
- std::cout << __func__ << " offset: " << *offset
- << " marker: " << marker << std::endl;
default_max = 1000; // XXX was being omitted
magic = 72;
op = this;
}
bool eof() {
- std::cout << "READDIR offset: " << *offset
- << " next marker: " << next_marker
- << " is_truncated: " << is_truncated
- << std::endl;
+ lsubdout(cct, rgw, 15) << "READDIR offset: " << *offset
+ << " next marker: " << next_marker
+ << " is_truncated: " << is_truncated
+ << dendl;
return !is_truncated;
}
class RGWProcess {
deque<RGWRequest*> m_req_queue;
protected:
+ CephContext *cct;
RGWRados* store;
OpsLogSocket* olog;
ThreadPool m_tp;
public:
RGWProcess(CephContext* cct, RGWProcessEnv* pe, int num_threads,
- RGWFrontendConfig* _conf)
- : store(pe->store), olog(pe->olog),
+ RGWFrontendConfig* _conf)
+ : cct(cct), store(pe->store), olog(pe->olog),
m_tp(cct, "RGWProcess::m_tp", "tp_rgw_process", num_threads),
req_throttle(cct, "rgw_ops", num_threads * 2),
- rest(pe->rest),
- conf(_conf),
- sock_fd(-1),
+ rest(pe->rest), conf(_conf), sock_fd(-1),
req_wq(this, g_conf->rgw_op_thread_timeout,
g_conf->rgw_op_thread_suicide_timeout, &m_tp) {}