Skip to content

Commit 9d351a7

Browse files
committed
rgw: rgw_init_ioctx() adds set_pool_full_try()
add librados::OPERATION_FULL_TRY globally so we never hang waiting for space when the pool reaches its quota limit Fixes: https://tracker.ceph.com/issues/69842 Signed-off-by: Casey Bodley <[email protected]>
1 parent 38929f4 commit 9d351a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rgw/driver/rados/rgw_tools.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ int rgw_init_ioctx(const DoutPrefixProvider *dpp,
9494
if (!pool.ns.empty()) {
9595
ioctx.set_namespace(pool.ns);
9696
}
97+
// at pool quota, never block waiting for space - we want to error immediately
98+
ioctx.set_pool_full_try();
9799
return 0;
98100
}
99101

0 commit comments

Comments
 (0)