mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
librgw: fix RGWPutObj s->content_length
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
parent
24da131da3
commit
21e6ff3760
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user