#include "common/errno.h"
#include "common/ceph_json.h"
+#include "common/backport14.h"
#include "rgw_rados.h"
#include "rgw_acl.h"
#include "rgw_acl_s3.h"
}
int list_keys_init(RGWRados *store, const string& marker, void **phandle) override {
- list_keys_info *info = new list_keys_info;
+ auto info = ceph::make_unique<list_keys_info>();
info->store = store;
if (ret < 0) {
return ret;
}
- *phandle = (void *)info;
+ *phandle = (void *)info.release();
return 0;
}
}
int list_keys_init(RGWRados *store, const string& marker, void **phandle) override {
- list_keys_info *info = new list_keys_info;
+ auto info = ceph::make_unique<list_keys_info>();
info->store = store;
if (ret < 0) {
return ret;
}
- *phandle = (void *)info;
+ *phandle = (void *)info.release();
return 0;
}
#include "common/Formatter.h"
#include "common/ceph_json.h"
#include "common/RWLock.h"
+#include "common/backport14.h"
#include "rgw_rados.h"
#include "rgw_acl.h"
int list_keys_init(RGWRados *store, const string& marker, void **phandle) override
{
- list_keys_info *info = new list_keys_info;
+ auto info = ceph::make_unique<list_keys_info>();
info->store = store;
return ret;
}
- *phandle = (void *)info;
+ *phandle = (void *)info.release();
return 0;
}