rgw_err::
rgw_err(int http, const std::string& s3)
- : http_ret(http), s3_code(s3)
+ : http_ret(http), ret(0), s3_code(s3)
{
}
length = NULL;
copy_source = NULL;
http_auth = NULL;
+
+ obj_ctx = NULL;
}
req_state::~req_state() {
}
m->obj_size = 5 * 1024 * 1024;
+ o.push_back(m);
+
o.push_back(new RGWObjManifest);
}
}
done = feof(stdin);
- parser.parse(buf, len, done);
+ bool result = parser.parse(buf, len, done);
+ if (!result) {
+ cerr << "failed to parse!" << std::endl;
+ }
if (done)
break;
RGWHandler *dialect_handler;
RGWRados *store;
public:
- RGWOp() : s(NULL), dialect_handler(NULL) {}
+ RGWOp() : s(NULL), store(NULL), dialect_handler(NULL) {}
virtual ~RGWOp() {}
virtual void init(RGWRados *store, struct req_state *s, RGWHandler *dialect_handler) {
virtual RGWOp *op_post() { return NULL; }
virtual RGWOp *op_copy() { return NULL; }
public:
- RGWHandler() : s(NULL) {}
+ RGWHandler() : store(NULL), s(NULL) {}
virtual ~RGWHandler();
virtual int init(RGWRados *store, struct req_state *_s, RGWClientIO *cio);
int (*intent_cb)(RGWRados *store, void *user_ctx, rgw_obj& obj, RGWIntentEvent intent);
void *user_ctx;
- RGWRadosCtx(RGWRados *_store) : store(_store) { }
+ RGWRadosCtx(RGWRados *_store) : store(_store), intent_cb(NULL), user_ctx(NULL) { }
RGWObjState *get_state(rgw_obj& obj);
void set_atomic(rgw_obj& obj);