]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_request.h
11345bb0d230851abd6f0fa8e3cd4549f8ecab88
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
7 #include "rgw_common.h"
12 #if defined(WITH_RADOSGW_FCGI_FRONTEND)
16 #include "common/QueueRing.h"
28 explicit RGWRequest(uint64_t id
) : id(id
), s(NULL
), op(NULL
) {}
30 virtual ~RGWRequest() {}
32 void init_state(req_state
*_s
) {
36 void log_format(struct req_state
*s
, const char *fmt
, ...);
38 void log(struct req_state
*s
, const char *msg
);
41 #if defined(WITH_RADOSGW_FCGI_FRONTEND)
42 struct RGWFCGXRequest
: public RGWRequest
{
44 QueueRing
<FCGX_Request
*> *qr
;
46 RGWFCGXRequest(uint64_t req_id
, QueueRing
<FCGX_Request
*> *_qr
)
47 : RGWRequest(req_id
), qr(_qr
) {
51 ~RGWFCGXRequest() override
{
58 struct RGWLoadGenRequest
: public RGWRequest
{
62 std::atomic
<bool>* fail_flag
= nullptr;
64 RGWLoadGenRequest(uint64_t req_id
, const string
& _m
, const string
& _r
, int _cl
,
65 std::atomic
<bool> *ff
)
66 : RGWRequest(req_id
), method(_m
), resource(_r
), content_length(_cl
),
70 #endif /* RGW_REQUEST_H */