Skip to content

Commit 4424f55

Browse files
committed
rgw/rados: RGWRados::Object::Read::read() uses rgw_rados_operate()
IoCtx::operate() will always block. use rgw_rados_operate() so that we can suspend the coroutine when optional_yield is not empty Signed-off-by: Casey Bodley <[email protected]>
1 parent 4475fcb commit 4424f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/driver/rados/rgw_rados.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7222,7 +7222,7 @@ int RGWRados::Object::Read::read(int64_t ofs, int64_t end,
72227222

72237223
state.cur_ioctx->locator_set_key(read_obj.loc);
72247224

7225-
r = state.cur_ioctx->operate(read_obj.oid, &op, NULL);
7225+
r = rgw_rados_operate(dpp, *state.cur_ioctx, read_obj.oid, &op, nullptr, y);
72267226
ldpp_dout(dpp, 20) << "rados->read r=" << r << " bl.length=" << bl.length() << dendl;
72277227

72287228
if (r < 0) {

0 commit comments

Comments
 (0)