summaryrefslogtreecommitdiff
path: root/src/rgw/rgw_rest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rgw/rgw_rest.cc')
-rw-r--r--src/rgw/rgw_rest.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc
index a0870708c44..ee73bb94fa5 100644
--- a/src/rgw/rgw_rest.cc
+++ b/src/rgw/rgw_rest.cc
@@ -1210,7 +1210,7 @@ int RGWREST::preprocess(struct req_state *s, RGWClientIO *cio)
}
RGWHandler *RGWREST::get_handler(RGWRados *store, struct req_state *s, RGWClientIO *cio,
- int *init_error)
+ RGWRESTMgr **pmgr, int *init_error)
{
RGWHandler *handler;
@@ -1224,6 +1224,9 @@ RGWHandler *RGWREST::get_handler(RGWRados *store, struct req_state *s, RGWClient
return NULL;
}
+ if (pmgr)
+ *pmgr = m;
+
handler = m->get_handler(s);
if (!handler) {
*init_error = -ERR_METHOD_NOT_ALLOWED;