return -EINVAL;
}
- async_rados = new RGWAsyncRadosProcessor(store, store->ctx()->_conf->rgw_num_async_rados_threads);
- async_rados->start();
-
int ret = http_manager.set_threaded();
if (ret < 0) {
ldout(store->ctx(), 0) << "failed in http_manager.set_threaded() ret=" << ret << dendl;
int effective_num_shards = (num_shards ? num_shards : 1);
+ auto async_rados = store->get_async_rados();
+
for (int i = 0; i < effective_num_shards; i++) {
RGWRemoteBucketLog *l = new RGWRemoteBucketLog(store, this, async_rados, &http_manager);
ret = l->init(source_zone, conn, bucket, (num_shards ? i : -1), error_logger, sync_module);
RGWCoroutinesManager cr_mgr;
- RGWAsyncRadosProcessor *async_rados;
RGWHTTPManager http_manager;
string source_zone;
RGWBucketSyncStatusManager(RGWRados *_store, const string& _source_zone,
const rgw_bucket& bucket) : store(_store),
cr_mgr(_store->ctx(), _store->get_cr_registry()),
- async_rados(NULL),
http_manager(store->ctx(), cr_mgr.get_completion_mgr()),
source_zone(_source_zone),
conn(NULL), error_logger(NULL),