mirror of
https://github.com/ceph/ceph
synced 2025-03-30 15:31:01 +00:00
rgw: drop rest op reference in error path
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
parent
ea2c703287
commit
f86f73f3f7
@ -95,6 +95,7 @@ public:
|
||||
int ret = op->aio_send(bl);
|
||||
if (ret < 0) {
|
||||
lsubdout(cct, rgw, 0) << "ERROR: failed to send post request" << dendl;
|
||||
op->put();
|
||||
return ret;
|
||||
}
|
||||
std::swap(http_op, op); // store reference in http_op on success
|
||||
@ -115,6 +116,7 @@ public:
|
||||
<< " status=" << op->get_http_status() << std::endl;
|
||||
lsubdout(cct, rgw, 0) << "ERROR: failed to wait for op, ret=" << ret
|
||||
<< ": " << op->to_str() << dendl;
|
||||
op->put();
|
||||
return ret;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user