mirror of
https://github.com/ceph/ceph
synced 2025-03-06 08:20:12 +00:00
rgw: drop unused assignment
rgw/rgw_rados.cc: In member function 'virtual int RGWPutObjProcessor_Atomic::handle_data(ceph::bufferlist&, off_t, void**)': rgw/rgw_rados.cc:648:5: warning: parameter 'ofs' set but not used [-Wunused-but-set-parameter] Signed-off-by: Sage Weil <sage@inktank.com> Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
2e216b5474
commit
07dfb6f4af
@ -645,7 +645,8 @@ int RGWPutObjProcessor_Atomic::write_data(bufferlist& bl, off_t ofs, void **phan
|
||||
return RGWPutObjProcessor_Aio::handle_obj_data(cur_obj, bl, ofs - cur_part_ofs, ofs, phandle);
|
||||
}
|
||||
|
||||
int RGWPutObjProcessor_Atomic::handle_data(bufferlist& bl, off_t ofs, void **phandle) {
|
||||
int RGWPutObjProcessor_Atomic::handle_data(bufferlist& bl, off_t ofs, void **phandle)
|
||||
{
|
||||
*phandle = NULL;
|
||||
if (extra_data_len) {
|
||||
size_t extra_len = bl.length();
|
||||
@ -660,7 +661,6 @@ int RGWPutObjProcessor_Atomic::handle_data(bufferlist& bl, off_t ofs, void **pha
|
||||
if (bl.length() == 0) {
|
||||
return 0;
|
||||
}
|
||||
ofs = extra_data_bl.length();
|
||||
}
|
||||
|
||||
pending_data_bl.claim_append(bl);
|
||||
|
Loading…
Reference in New Issue
Block a user