http_ret = 0;
}
+void RGWOp_Metadata_Get_Myself::execute() {
+ string owner_id;
+
+ owner_id = s->owner.get_id().to_str();
+ s->info.args.append("key", owner_id);
+
+ return RGWOp_Metadata_Get::execute();
+}
+
void RGWOp_Metadata_List::execute() {
string marker = s->info.args.get("marker");
bool max_entries_specified;
}
RGWOp *RGWHandler_Metadata::op_get() {
+ if (s->info.args.exists("myself"))
+ return new RGWOp_Metadata_Get_Myself;
if (s->info.args.exists("key"))
return new RGWOp_Metadata_Get;
else
const char* name() const override { return "get_metadata"; }
};
+class RGWOp_Metadata_Get_Myself : public RGWOp_Metadata_Get {
+public:
+ RGWOp_Metadata_Get_Myself() {}
+ ~RGWOp_Metadata_Get_Myself() override {}
+
+ void execute() override;
+};
+
class RGWOp_Metadata_Put : public RGWRESTOp {
int get_data(bufferlist& bl);
string update_status;