mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-30 09:48:54 +00:00
fix init order for EmbeddedNetworkController (#2014)
This commit is contained in:
parent
524363dcf7
commit
f42841a6ab
@ -466,11 +466,21 @@ EmbeddedNetworkController::EmbeddedNetworkController(Node *node,const char *ztPa
|
||||
, _node(node)
|
||||
, _ztPath(ztPath)
|
||||
, _path(dbPath)
|
||||
, _signingId()
|
||||
, _signingIdAddressString()
|
||||
, _sender((NetworkController::Sender *)0)
|
||||
, _db(this)
|
||||
, _queue()
|
||||
, _threads()
|
||||
, _threads_l()
|
||||
, _memberStatus()
|
||||
, _memberStatus_l()
|
||||
, _expiringSoon()
|
||||
, _expiringSoon_l()
|
||||
, _rc(rc)
|
||||
, _ssoExpiryRunning(true)
|
||||
, _ssoExpiry(std::thread(&EmbeddedNetworkController::_ssoExpiryThread, this))
|
||||
, _rc(rc)
|
||||
|
||||
#ifdef CENTRAL_CONTROLLER_REQUEST_BENCHMARK
|
||||
, _member_status_lookup{"nc_member_status_lookup",""}
|
||||
, _member_status_lookup_count{"nc_member_status_lookup_count",""}
|
||||
|
@ -139,9 +139,6 @@ private:
|
||||
std::vector<std::thread> _threads;
|
||||
std::mutex _threads_l;
|
||||
|
||||
bool _ssoExpiryRunning;
|
||||
std::thread _ssoExpiry;
|
||||
|
||||
std::unordered_map< _MemberStatusKey,_MemberStatus,_MemberStatusHash > _memberStatus;
|
||||
std::mutex _memberStatus_l;
|
||||
|
||||
@ -151,6 +148,9 @@ private:
|
||||
RedisConfig *_rc;
|
||||
std::string _ssoRedirectURL;
|
||||
|
||||
bool _ssoExpiryRunning;
|
||||
std::thread _ssoExpiry;
|
||||
|
||||
#ifdef CENTRAL_CONTROLLER_REQUEST_BENCHMARK
|
||||
prometheus::simpleapi::benchmark_family_t _member_status_lookup;
|
||||
prometheus::simpleapi::counter_family_t _member_status_lookup_count;
|
||||
|
Loading…
Reference in New Issue
Block a user