Skip to content

Commit

Permalink
Merge pull request ceph#4309 from prallabh/master
Browse files Browse the repository at this point in the history
RGW: Make RADOS handles in RGW to be a configurable option

Passed rgw teuthology suite run.

Reviewed-by: Yehuda Sadeh <[email protected]>
  • Loading branch information
yehudasa committed May 28, 2015
2 parents 729c5e1 + 7476e94 commit 77e0084
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 55 deletions.
1 change: 1 addition & 0 deletions src/common/config_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,7 @@ OPTION(rgw_op_thread_timeout, OPT_INT, 10*60)
OPTION(rgw_op_thread_suicide_timeout, OPT_INT, 0)
OPTION(rgw_thread_pool_size, OPT_INT, 100)
OPTION(rgw_num_control_oids, OPT_INT, 8)
OPTION(rgw_num_rados_handles, OPT_U32, 1)

OPTION(rgw_zone, OPT_STR, "") // zone name
OPTION(rgw_zone_root_pool, OPT_STR, ".rgw.root") // pool where zone specific info is stored
Expand Down
2 changes: 1 addition & 1 deletion src/rgw/rgw_gc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ int RGWGC::process(int index, int max_secs)
if (obj.pool != last_pool) {
delete ctx;
ctx = new IoCtx;
ret = store->rados->ioctx_create(obj.pool.c_str(), *ctx);
ret = store->get_rados_handle()->ioctx_create(obj.pool.c_str(), *ctx);
if (ret < 0) {
dout(0) << "ERROR: failed to create ioctx pool=" << obj.pool << dendl;
continue;
Expand Down
Loading

0 comments on commit 77e0084

Please sign in to comment.