]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_request.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab ft=cpp
6 #include "rgw_common.h"
11 #include "common/QueueRing.h"
21 explicit RGWRequest(uint64_t id
) : id(id
), s(NULL
), op(NULL
) {}
23 virtual ~RGWRequest() {}
25 void init_state(req_state
*_s
) {
30 struct RGWLoadGenRequest
: public RGWRequest
{
34 std::atomic
<bool>* fail_flag
= nullptr;
36 RGWLoadGenRequest(uint64_t req_id
, const std::string
& _m
, const std::string
& _r
, int _cl
,
37 std::atomic
<bool> *ff
)
38 : RGWRequest(req_id
), method(_m
), resource(_r
), content_length(_cl
),