mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
lirgw: call RGWHanlder_Lib::init_from_header
Call this from the general RGWLibRequest init() method, after descendant header_init() has run. Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
parent
6dae209ceb
commit
cbcb641ef8
@ -223,8 +223,6 @@ int RGWLibProcess::process_request(RGWLibRequest* req, RGWLibIO* io)
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* XXXX almost correct, I think */
|
||||
#if 0
|
||||
req->log(s, "verifying op permissions");
|
||||
ret = op->verify_permission();
|
||||
if (ret < 0) {
|
||||
@ -235,8 +233,6 @@ int RGWLibProcess::process_request(RGWLibRequest* req, RGWLibIO* io)
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
req->log(s, "here 3");
|
||||
|
||||
req->log(s, "verifying op params");
|
||||
ret = op->verify_params();
|
||||
@ -273,9 +269,8 @@ done:
|
||||
|
||||
int RGWLibFrontend::init()
|
||||
{
|
||||
/* XXX */
|
||||
pprocess = new RGWLibProcess(g_ceph_context, &env,
|
||||
g_conf->rgw_thread_pool_size, conf);
|
||||
g_conf->rgw_thread_pool_size, conf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -142,7 +142,11 @@ public:
|
||||
log_format(_s, "initializing for trans_id = %s",
|
||||
get_state()->trans_id.c_str());
|
||||
|
||||
return header_init();
|
||||
int ret = header_init();
|
||||
if (ret == 0) {
|
||||
ret = init_from_header(_s);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
virtual bool only_bucket() = 0;
|
||||
|
@ -7,9 +7,7 @@
|
||||
#include "rgw_rest_lib.h"
|
||||
#include "rgw_file.h"
|
||||
|
||||
/* XXX going away ! */
|
||||
|
||||
#warning kill me
|
||||
/* static */
|
||||
int RGWHandler_Lib::init_from_header(struct req_state *s)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user