There are some new globals introduced in libosd lately. This patch
cleans them.
Signed-off-by: Roald J. van Loon <roaldvanloon@gmail.com>
bool ms_get_authorizer(int dest_type,
AuthAuthorizer **authorizer,
bool force_new);
- ObjecterDispatcher(OSDService *o) : Dispatcher(g_ceph_context), osd(o) {}
+ ObjecterDispatcher(OSDService *o) : Dispatcher(cct), osd(o) {}
} objecter_dispatcher;
friend class ObjecterDispatcher;
dout(10) << __func__ << " " << ctx << " " << cop << dendl;
ObjectOperation op;
op.assert_version(cop->version);
- op.copy_get(&cop->cursor, g_conf->osd_copyfrom_max_chunk,
+ op.copy_get(&cop->cursor, cct->_conf->osd_copyfrom_max_chunk,
&cop->size, &cop->mtime, &cop->attrs,
&cop->data, &cop->omap,
&cop->rval);