s << "]";
}
-RGWRadosSetOmapKeysCR::~RGWRadosSetOmapKeysCR()
-{
- if (cn) {
- cn->put();
- }
-}
-
int RGWRadosSetOmapKeysCR::send_request()
{
int r = store->get_raw_obj_ref(obj, &ref);
op.omap_set(entries);
cn = stack->create_completion_notifier();
- cn->get();
return ref.ioctx.aio_operate(ref.oid, cn->completion(), &op);
}
set_description() << "set omap keys dest=" << obj << " marker=" << marker;
}
-RGWRadosGetOmapKeysCR::~RGWRadosGetOmapKeysCR()
-{
-}
-
int RGWRadosGetOmapKeysCR::send_request() {
int r = store->get_raw_obj_ref(obj, &ref);
if (r < 0) {
set_description() << "remove omap keys dest=" << obj << " keys=" << keys;
}
-RGWRadosRemoveOmapKeysCR::~RGWRadosRemoveOmapKeysCR()
-{
-}
-
int RGWRadosRemoveOmapKeysCR::send_request() {
int r = store->get_raw_obj_ref(obj, &ref);
if (r < 0) {
entries.push_back(entry);
}
-RGWRadosTimelogAddCR::~RGWRadosTimelogAddCR()
-{
- if (cn) {
- cn->put();
- }
-}
-
int RGWRadosTimelogAddCR::send_request()
{
set_status() << "sending request";
cn = stack->create_completion_notifier();
- cn->get();
return store->time_log_add(oid, entries, cn->completion(), true);
}
<< " from_marker=" << from_marker << " to_marker=" << to_marker;
}
-RGWRadosTimelogTrimCR::~RGWRadosTimelogTrimCR()
-{
- if (cn) {
- cn->put();
- }
-}
-
int RGWRadosTimelogTrimCR::send_request()
{
set_status() << "sending request";
cn = stack->create_completion_notifier();
- cn->get();
return store->time_log_trim(oid, start_time, end_time, from_marker,
to_marker, cn->completion());
}
rgw_raw_obj obj;
- RGWAioCompletionNotifier *cn;
+ boost::intrusive_ptr<RGWAioCompletionNotifier> cn;
public:
RGWRadosSetOmapKeysCR(RGWRados *_store,
const rgw_raw_obj& _obj,
map<string, bufferlist>& _entries);
- ~RGWRadosSetOmapKeysCR() override;
-
int send_request() override;
int request_complete() override;
};
rgw_raw_obj obj;
- RGWAioCompletionNotifier *cn;
+ boost::intrusive_ptr<RGWAioCompletionNotifier> cn;
public:
RGWRadosGetOmapKeysCR(RGWRados *_store,
const string& _marker,
map<string, bufferlist> *_entries, int _max_entries);
- ~RGWRadosGetOmapKeysCR() override;
-
int send_request() override;
int request_complete() override {
const rgw_raw_obj& _obj,
const set<string>& _keys);
- ~RGWRadosRemoveOmapKeysCR() override;
-
int send_request() override;
int request_complete() override;
string oid;
- RGWAioCompletionNotifier *cn;
+ boost::intrusive_ptr<RGWAioCompletionNotifier> cn;
public:
RGWRadosTimelogAddCR(RGWRados *_store, const string& _oid,
const cls_log_entry& entry);
- ~RGWRadosTimelogAddCR() override;
int send_request() override;
int request_complete() override;
class RGWRadosTimelogTrimCR : public RGWSimpleCoroutine {
RGWRados *store;
- RGWAioCompletionNotifier *cn{nullptr};
+ boost::intrusive_ptr<RGWAioCompletionNotifier> cn;
protected:
std::string oid;
real_time start_time;
const real_time& start_time, const real_time& end_time,
const std::string& from_marker,
const std::string& to_marker);
- ~RGWRadosTimelogTrimCR() override;
int send_request() override;
int request_complete() override;