Skip to content

Commit 38929f4

Browse files
committed
rgw: RGWRadosRemoveCR uses rgw_init_ioctx()
avoid direct calls to ioctx_create() so rgw_init_ioctx() can set appropriate flags globally Signed-off-by: Casey Bodley <[email protected]>
1 parent 0ce5cdc commit 38929f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/driver/rados/rgw_cr_rados.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ RGWRadosRemoveCR::RGWRadosRemoveCR(rgw::sal::RadosStore* store, const rgw_raw_ob
437437
int RGWRadosRemoveCR::send_request(const DoutPrefixProvider *dpp)
438438
{
439439
auto rados = store->getRados()->get_rados_handle();
440-
int r = rados->ioctx_create(obj.pool.name.c_str(), ioctx);
440+
int r = rgw_init_ioctx(dpp, rados, obj.pool, ioctx);
441441
if (r < 0) {
442442
lderr(cct) << "ERROR: failed to open pool (" << obj.pool.name << ") ret=" << r << dendl;
443443
return r;

0 commit comments

Comments
 (0)