Skip to content

Commit

Permalink
Merge pull request #5612: RGW: Make RADOS handles in RGW to be a conf…
Browse files Browse the repository at this point in the history
…igurable option

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
ldachary committed Aug 30, 2015
2 parents f096c23 + 7c43e06 commit 55f70f7
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
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
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

0 comments on commit 55f70f7

Please sign in to comment.