* there is no need to have another cct as Dispatch has one already.
* by `using` the parent member variable in `public`, we expose `cct`
as part of the interface. so that `cct` can be accessed from
outside the class.
* and in Objecter, the ctor is initiating its parent class using the
uninitialized member variable cct. better off fixing this.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Client::Client(Messenger *m, MonClient *mc)
: Dispatcher(m->cct),
- cct(m->cct),
logger(NULL),
m_command_hook(this),
timer(m->cct, client_lock),
class Client : public Dispatcher {
public:
- CephContext *cct;
+ using Dispatcher::cct;
PerfCounters *logger;
}
librados::RadosClient::RadosClient(CephContext *cct_)
- : Dispatcher(cct_),
- cct(cct_->get()),
+ : Dispatcher(cct_->get()),
conf(cct_->_conf),
state(DISCONNECTED),
monclient(cct_),
class librados::RadosClient : public Dispatcher
{
public:
- CephContext *cct;
+ using Dispatcher::cct;
md_config_t *conf;
private:
enum {
private:
OSDMap *osdmap;
public:
- CephContext *cct;
+ using Dispatcher::cct;
std::multimap<string,string> crush_location;
atomic_t initialized;
Finisher *fin,
double mon_timeout,
double osd_timeout) :
- Dispatcher(cct),
+ Dispatcher(cct_),
messenger(m), monc(mc), finisher(fin),
osdmap(new OSDMap),
- cct(cct_),
initialized(0),
last_tid(0), client_inc(-1), max_linger_id(0),
num_unacked(0), num_uncommitted(0),