summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_aio.h
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2019-04-17 23:04:55 +0200
committerCasey Bodley <cbodley@redhat.com>2019-04-24 16:39:09 +0200
commit6c3b26c877667393e4d6f74e6b6739707427e3e6 (patch)
tree96f97f015ddc91343c0a287c02216df69cb84285 /src/rgw/rgw_aio.h
parentrgw: add optional_yield to get_obj_data (diff)
downloadceph-6c3b26c877667393e4d6f74e6b6739707427e3e6.tar.xz
ceph-6c3b26c877667393e4d6f74e6b6739707427e3e6.zip
rgw: add optional_yield to Aio::librados_op()
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/rgw/rgw_aio.h')
-rw-r--r--src/rgw/rgw_aio.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rgw/rgw_aio.h b/src/rgw/rgw_aio.h
index 4602be0a622..6c9eca5c67a 100644
--- a/src/rgw/rgw_aio.h
+++ b/src/rgw/rgw_aio.h
@@ -21,6 +21,7 @@
#include <boost/intrusive/list.hpp>
#include "include/rados/librados_fwd.hpp"
+#include "common/async/yield_context.h"
#include "services/svc_rados.h" // cant forward declare RGWSI_RADOS::Obj
@@ -90,8 +91,10 @@ class Aio {
// wait for all outstanding completions and return their results
virtual AioResultList drain() = 0;
- static OpFunc librados_op(librados::ObjectReadOperation&& op);
- static OpFunc librados_op(librados::ObjectWriteOperation&& op);
+ static OpFunc librados_op(librados::ObjectReadOperation&& op,
+ optional_yield y);
+ static OpFunc librados_op(librados::ObjectWriteOperation&& op,
+ optional_yield y);
};
} // namespace rgw