mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
rgw: clean async rest ops in calling cr
Need to drop a reference to the async rest op when done. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
parent
2a1541809b
commit
ea2c703287
@ -51,6 +51,12 @@ public:
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void request_cleanup() {
|
||||
if (http_op) {
|
||||
http_op->put();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
template <class S, class T>
|
||||
@ -113,6 +119,12 @@ public:
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void request_cleanup() {
|
||||
if (http_op) {
|
||||
http_op->put();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user