always prefer using the local one, for better readability and
testability.
Signed-off-by: Kefu Chai <kchai@redhat.com>
full_state(FULL_NOTFULL),
fd(-1),
writing_seq(0),
- throttle(cct->_conf->filestore_caller_concurrency),
+ throttle(cct, cct->_conf->filestore_caller_concurrency),
write_stop(true),
aio_stop(true),
write_thread(this),
uint64_t get_max();
JournalThrottle(
+ CephContext *cct,
unsigned expected_concurrency ///< [in] determines size of conds
- ) : throttle(g_ceph_context, "filestore_journal", expected_concurrency) {}
+ ) : throttle(cct, "filestore_journal", expected_concurrency) {}
};
#endif