This is a workaround to fix issue with aio_operate() racing with the
request completion. This way we make sure completion->release() is
called after aio_operate() finishes.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
RGWMetadataLogInfoCompletion *req_completion = new RGWMetadataLogInfoCompletion(info, completion_manager, user_info, pret);
+ req_completion->get();
+
int ret = store->time_log_info_async(req_completion->get_io_ctx(), oid, req_completion->get_header(), req_completion->get_completion());
if (ret < 0) {
return ret;
}
+ req_completion->put();
+
return 0;
}