librgw: fix RGWPutObj s->content_length

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
Matt Benjamin 2015-10-27 13:02:59 -04:00
parent 24da131da3
commit 21e6ff3760

View File

@ -416,6 +416,9 @@ public:
s->info.request_params = "";
s->info.domain = ""; /* XXX ? */
/* XXX required in RGWOp::execute() */
s->content_length = bl.length();
// woo
s->user = user;
@ -425,7 +428,6 @@ public:
virtual int get_data(buffer::list& _bl) {
/* XXX for now, use sharing semantics */
_bl.claim(bl);
_bl.hexdump(cout);
return _bl.length();
}